Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Last active November 21, 2015 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whatalnk/4e08b08a2bfc4f15cb9c to your computer and use it in GitHub Desktop.
Save whatalnk/4e08b08a2bfc4f15cb9c to your computer and use it in GitHub Desktop.
Codeforces 332 Div2
# [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
@whatalnk
Copy link
Author

@whatalnk
Copy link
Author

  • A
  • B
  • C
  • D
  • E

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment