fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int t=0;
  6. (-5000<=t<=5000);
  7. cin>>t;
  8. while(t--)
  9. if(t>=1900)
  10. cout<<"Division 1"<< endl;
  11. else if (t>=1600)
  12. cout<<"Division 2"<< endl ;
  13. else if(t>=1400)
  14. cout<<"Division 3"<< endl;
  15. else
  16. cout<<"Division 4"<< endl;
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5324KB
stdin
7
-789
1299
1300
1399
1400
1679
2300
stdout
Division 4
Division 4
Division 4
Division 4
Division 4
Division 4
Division 4