fork(1) download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. long[] seed = new long[23];
  14. seed[0] = 0x9876_5432L;
  15. seed[1] = 0xF1E2_D3C4L;
  16. for (int i = 2; i < seed.length; i++)
  17. {
  18. seed[i] = seed[i - 2] ^ (seed[i - 1] >> (i - 1)) ^ (seed[i - 1] << ((i + i + 1) & 0xF));
  19. seed[i] &= 0xFFFF_FFFFL;
  20. System.out.printf("%x%n", seed[i]);
  21. }
  22. }
  23. }
Success #stdin #stdout 0.07s 34124KB
stdin
Standard input is empty
stdout
dcdd4550
a8772a90
27868002
9e0f5290
c924fa96
e060c17a
825b9e0
a1452bc3
20d06315
c97c955b
d9e3fa87
d6a53364
7f89cfae
3173cd43
1d6e37cf
da026e55
5d23906e
4bca4e1d
c9bfa317
b6d2fa86
96ef66a1