fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int prev, current;
  6. cin>>prev;
  7. while(cin>>current && prev <= current)
  8. {
  9. prev = current;
  10. }
  11. if(prev <= current) cout<<"niemalejacy";
  12. else cout<<"inny";
  13. return 0;
  14. }
Success #stdin #stdout 0s 15240KB
stdin
1 2 30 30 100 100
stdout
niemalejacy