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