fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <cmath>
  4.  
  5. using namespace std;
  6.  
  7. int main ()
  8. {
  9. int M , S;
  10. cin >> M;
  11. S = M / 1024;
  12. cout << S << endl;
  13. }
Success #stdin #stdout 0s 4400KB
stdin
2048
stdout
2