Last active
November 21, 2015 03:27
-
-
Save whatalnk/4e08b08a2bfc4f15cb9c to your computer and use it in GitHub Desktop.
Codeforces 332 Div2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [Problem - A - Codeforces](http://codeforces.com/contest/599/problem/A) | |
d1, d2, d3 = gets.chomp.split(" ").map(&:to_i) | |
puts [2*(d1+d2), d1+d2+d3, 2*(d1+d3), 2*(d2+d3)].min |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Editorial Codeforces Round #332 (Div. 2) - Codeforces