fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int a, b=0;
  5. cin >> a;
  6. while (a != 0) {
  7. if ( a > b)
  8. b = a;
  9. cin >> a;
  10. }
  11. cout << b;
  12. return 0;
  13. }
Time limit exceeded #stdin #stdout 5s 4464KB
stdin
Standard input is empty
stdout
Standard output is empty