fork download
  1. #include<stdio.h>
  2.  
  3. int M[4];
  4.  
  5. #define read(a) scanf("%d", &a)
  6. #define write(a) printf("%d", a)
  7. #define then
  8. #define halt return 0
  9.  
  10. int main()
  11. {
  12. step1: read(M[1]);
  13. step2: read(M[2]);
  14. step3: M[3] = 0;
  15. step4: M[2] = M[2] - 1;
  16. step5: M[3] = M[3] + M[1];
  17. step6: if (M[2] >= 0) then goto step4;
  18. step7: M[3] = M[3] - M[1];
  19. step8: write(M[3]);
  20. step9: halt;
  21. }
Success #stdin #stdout 0s 2012KB
stdin
5 0
stdout
Standard output is empty