fork download
  1. #include <bits/stdc++.h>
  2. #define endl '\n'
  3. #define int long long
  4.  
  5. using namespace std;
  6.  
  7. void solve()
  8. {
  9. int x;
  10. cin>>x;
  11. cout<<(x>>1);
  12. }
  13.  
  14. int32_t main()
  15. {
  16. #ifndef ONLINE_JUDGE
  17. freopen("input.txt", "r", stdin);
  18. freopen("output.txt", "w", stdout);
  19. #endif
  20. ios_base::sync_with_stdio(0);
  21. cin.tie(0);
  22. cout.tie(0);
  23. int Test=1;
  24. //cin >> Test;
  25. for (int i = 0; i < Test; ++i) {
  26. solve();
  27. }
  28. cerr << "Done!" << endl;
  29. return 0;
  30. }
Success #stdin #stdout #stderr 0.01s 5276KB
stdin
10
stdout
5
stderr
Done!