fork(1) download
  1. #include <stdio.h> /* printf */
  2. #include <math.h> /* ceil */
  3. #define LL long long
  4.  
  5. int main ()
  6. {
  7. LL a= 10000001000000000;
  8. LL aa = 10000000000000000-1;
  9. LL aaa = 10000000000000000+1;
  10. int b = 1;
  11. int c = 1;
  12. printf ( "%Ld\n", (LL)ceil((double)(a-b)/c) );
  13. printf ( "%Ld\n", (LL)ceil((double)(aa-b)/c) );
  14. printf ( "%Ld\n", (LL)ceil((double)(aaa-b)/c) );
  15. return 0;
  16. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
10000001000000000
9999999999999998
10000000000000000