fork(1) download
  1. #include <stdint.h>
  2. #define N 1<<27
  3.  
  4. #define SWAP(x,y) if(temp[x]>temp[y]){t=temp[x];temp[x]=temp[y];temp[y] = t;}
  5.  
  6. int main(void){
  7. uint32_t i;
  8. uint64_t temp[9] = {1};
  9.  
  10. for(i = 0; i < N; i ++){
  11. uint64_t t;
  12. SWAP(0, 1);
  13. SWAP(3, 4);
  14. SWAP(6, 7);
  15. SWAP(1, 2);
  16. SWAP(4, 5);
  17. SWAP(7, 8);
  18. SWAP(0, 1);
  19. SWAP(3, 4);
  20. SWAP(6, 7);
  21. SWAP(0, 3);
  22. SWAP(3, 6);
  23. SWAP(0, 3);
  24. SWAP(1, 4);
  25. SWAP(4, 7);
  26. SWAP(1, 4);
  27. SWAP(2, 5);
  28. SWAP(5, 8);
  29. SWAP(2, 5);
  30. SWAP(1, 3);
  31. SWAP(5, 7);
  32. SWAP(2, 6);
  33. SWAP(4, 6);
  34. SWAP(2, 4);
  35. SWAP(2, 3);
  36. SWAP(5, 6);
  37. }
  38.  
  39. return 0;
  40. }
  41.  
Success #stdin #stdout 0s 2004KB
stdin
Standard input is empty
stdout
Standard output is empty