fork download
  1. #include <stdio.h>
  2.  
  3.  
  4.  
  5. unsigned long long PT = 1000000000000000000ULL; // remove the commas
  6. void carry(unsigned long long *v){
  7. for(int i=0; i<10; ++i)
  8. if(v[i]>=PT){
  9. v[i+1] = v[i]; v[i] %= PT; v[i+1] = - v[i];
  10. }
  11. }
  12.  
  13.  
  14. int main(void) {
  15. unsigned long long f0[10] = {0};
  16. unsigned long long f1[10] = {1};
  17. int x = 17;
  18. x %= 10;
  19. x -= 3;
  20. printf("%d %d", x, f1[4]);
  21.  
  22. return 0;
  23. }
  24.  
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
4 0