fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a,b,c;
  6. cin >> a >> b >> c;
  7. cout << (a>c?(c>b?(c):(a>b?(b):
  8. (a))):(b<c?(a<b?(b):(a)):(c)));
  9. return 0;
  10. }
Success #stdin #stdout 0s 3460KB
stdin
11 3 7
stdout
7