fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. long long int a, b, c, d;
  6. scanf("%lld %lld %lld %lld",&a, &b, &c, &d);
  7.  
  8. a = a%100;
  9. b = b%100;
  10. c = c%100;
  11. d = d%100;
  12.  
  13. long long int mul = a;
  14. mul = (mul*b)%100;
  15. mul = (mul*c)%100;
  16. mul = (mul*d)%100;
  17. printf("%03lld",mul%100);
  18.  
  19. }
Success #stdin #stdout 0s 5272KB
stdin
10 10 10 10
stdout
000