fork download
  1. int main() {
  2. int k = 1, seed = 12345, randomNumbers[55];
  3.  
  4. randomNumbers[54] = seed;
  5. for(int i = 1; i <= 54; ++i) {
  6. int ii = ((21 * i) % 55) - 1;
  7. randomNumbers[ii] = k;
  8. k = seed - k;
  9. seed = randomNumbers[ii];
  10. }
  11.  
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 2892KB
stdin
Standard input is empty
stdout

Standard output is empty