[Python_Training] Giá trị nhỏ nhất đơn giản

View as PDF



Problem type
Allowed languages
C#, C++, Clang, Clang++, Cobol, D, Groovy, Haskell, Java, JS, Kotlin, Lua, Node JS, ObjectiveC, OCaml, Output, PHP, Prolog, Pypy, Pypy 3, Python, Ruby, Rust, Scala, Scratch, Swift
Points: 100 Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout
  • Cho \(3\) số nguyên dương \(a,b,c\). Đặt \(S=min\left\{a+b,b+c,c+a\right\}\), xuất \(S\) ra màn hình.

Input

  • Dòng thứ nhất chứa \(3\) số nguyên dương \(a,b,c(1\le a,b,c\le 10000)\)

Output

  • In ra \(S\) cần tìm.

Example

Test 1

Input
2 5 6
Output
7

Comments

There are no comments at the moment.