fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main(){
  5. long long a,b,c,d,rem,ans1,ans2;
  6. cin >> a >> b >> c >> d;
  7. long long v1 = a*b, v2 = c*d;
  8. rem = ((v1%100) * (v2%100)) % 100;
  9. ans1 = rem % 10;
  10. rem /= 10;
  11. ans2 = rem % 10;
  12. cout << ans2 << ans1;
  13. return 0;
  14. }
Success #stdin #stdout 0s 5284KB
stdin
10 10 10 10
stdout
00