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. if((ans%100)<=9){
  14. cout << "0"<<ans;
  15. }
  16. else{
  17. cout << (ans%100);
  18. }
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 5292KB
stdin
Standard input is empty
stdout
00