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