fork(1) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. long long int count=0,n,i=0,m;
  6. cin>>m;
  7. n = m;
  8. while(1)
  9. {
  10. if(n-n/10<10)
  11. break;
  12. count += n/10;
  13. n -= n/10;
  14. i++;
  15. }
  16. i++;
  17. i=i/2;
  18. m/=2;
  19. cout<<ceil(float(m)/float(i));
  20. //cout<<i<<" "<<count;
  21. return 0;
  22. }
Success #stdin #stdout 0s 4244KB
stdin
68
stdout
3