Advertisement
Rofyda_Elghadban1

Untitled

Dec 3rd, 2021
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cmath>
  4.  
  5. using namespace std;
  6. void Rofyda_Elghadban(){
  7. #ifndef ONLINE_JUDGE
  8. freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
  9. #endif
  10. }
  11.  
  12. int main()
  13. { Rofyda_Elghadban();
  14. long long a,b,c,d;
  15. long long num1,num2;
  16. int digits;
  17. num1==4;digits;
  18. num2==1;digits;
  19. cin>>a>>b>>c>>d;;
  20. if(a*b*c*d==num1){
  21. cout<<(a%100*b%100*c%100*d%100)%100<<"\n";
  22. }else if(a*b*c*d==num2){
  23. cout<<num2<<"\n";
  24. }
  25. return 0;
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement