Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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
Owner

whatalnk commented Nov 21, 2015

  • A
  • B
  • C
  • D
  • E
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment