fork download
  1. /*juba*/
  2. #include <bits/stdc++.h>
  3. #define juba ios::sync_with_stdio(false);cin.tie(0);
  4. using namespace std;
  5.  
  6. int main() {
  7. juba ;
  8.  
  9. int t ;
  10. cin >> t ;
  11.  
  12. if (t <= 10000-1) cout << t ;
  13. else if (t <= 100000-1) {
  14. t = t / 100 ;
  15. cout << t * 100 ;
  16. }
  17. else if (t <= 1000000-1) {
  18. t = t / 1000 ;
  19. cout << t * 1000 ;
  20. }
  21. else if (t <= 10000000-1) {
  22. t = t / 10000 ;
  23. cout << t * 10000 ;
  24. }
  25. else if (t <= 100000000-1) {
  26. t = t / 100000 ;
  27. cout << t * 100000 ;
  28. }
  29. else if (t <= 1000000000-1) {
  30. t = t / 1000000 ;
  31. cout << t * 1000000 ;
  32. }
  33. else {
  34. t = t / 10000000 ;
  35. cout << t * 10000000 ;
  36. }
  37. }
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
32700