fork download
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. using namespace std;
  5.  
  6. long long X(long long x) { return (62741*x + 13)%125480; }
  7.  
  8. int main(int argc, char * argv[])
  9. {
  10.  
  11. long long x = 100;
  12.  
  13. for(int i = 0; i < 125480; ++i) x = X(x);
  14.  
  15. cout << x;
  16.  
  17. }
  18.  
Success #stdin #stdout 0.01s 5652KB
stdin
Standard input is empty
stdout
100