fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x;
  6. cin >> x;
  7. if(x > 100) {
  8. cout << 3;
  9. }else if(x > 50) {
  10. cout << 2;
  11. }else{
  12. cout << 1;
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 5280KB
stdin
111 -> 3
stdout
3