fork download
  1. #include <iostream>
  2. #include <bits/stdc++.h>
  3. #define ll long long
  4. using namespace std;
  5.  
  6. int main() {
  7. ios_base::sync_with_stdio(false);
  8. cin.tie(NULL);
  9.  
  10. #ifndef ONLINE_JUDGE
  11. freopen("input.txt", "r", stdin);
  12. freopen("output.txt", "w", stdout);
  13. #endif
  14.  
  15. ll a, b, c, d;
  16. cin >> a >> b >> c >> d;
  17.  
  18.  
  19. a %= 100;
  20. b %= 100;
  21. c %= 100;
  22. d %= 100;
  23.  
  24.  
  25. ll product = a;
  26. product = (product * b) % 100;
  27. product = (product * c) % 100;
  28. product = (product * d) % 100;
  29.  
  30. cout << product;
  31.  
  32. return 0;
  33. }
  34.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
Standard output is empty