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. {
  10. if(t>=1900)
  11. cout<<"Division 1"<< endl;
  12. else if (t>=1600)
  13. cout<<"Division 2"<< endl ;
  14. else if(t>=1400)
  15. cout<<"Division 3"<< endl;
  16. else
  17. cout<<"Division 4"<< endl;
  18. }
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 5292KB
stdin
7
-789
1299
1300
1399
1400
1679
2300
stdout
Division 4
Division 4
Division 4
Division 4
Division 4
Division 4
Division 4