fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x = 1;
  6. for (int i = 1; i <= 100000000; i++) {
  7. x *= 4;
  8. x %= 50;
  9. x /= 2;
  10. x %= 10;
  11. }
  12. cout << x << endl;
  13. }
Success #stdin #stdout 0.65s 5284KB
stdin
Standard input is empty
stdout
6