fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, c;
  6. cin >> a >> b >> c;
  7. if ((a < b) and (a < c)) cout << a;
  8. else if ((b < a) and (b < c)) cout << b;
  9. else cout << c;
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5312KB
stdin
1
3
4
stdout
1