fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cmath>
  4.  
  5. using namespace std;
  6. int main()
  7.  
  8. {
  9. ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
  10. long long A, B, C, D;
  11. cin >> A >> B >> C >> D;
  12. long long ans=((A%100)*(B%100)*(C%100)*(D%100));
  13. ans%=100;
  14. if(ans<=9){
  15. cout << "0"<<(ans);
  16. }
  17. else{
  18. cout << ans;
  19. }
  20. return 0;
  21. }
  22.  
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
00