Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <cmath>
- using namespace std;
- void Rofyda_Elghadban(){
- #ifndef ONLINE_JUDGE
- freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
- #endif
- }
- int main()
- { Rofyda_Elghadban();
- long long a,b,c,d;
- long long num1,num2;
- int digits;
- num1==4;digits;
- num2==1;digits;
- cin>>a>>b>>c>>d;;
- if(a*b*c*d==num1){
- cout<<(a%100*b%100*c%100*d%100)%100<<"\n";
- }else if(a*b*c*d==num2){
- cout<<num2<<"\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement