fork(31) download
  1. #include <stdio.h>
  2.  
  3. // ULTIMATE 0x17
  4.  
  5. int main()
  6. {
  7. int Ox01 = ~-~-~-~-~-~-~-~-~-' ';
  8. int Ox02 = ((!true)["true"]-(false)["FALSE"])>>true;
  9. int Ox03 = 'X'/2/2^!*"";
  10. int Ox04 = ('0'>>!*"")-!*"";
  11. int Ox05 = (~'!'-~'~')>>!*"">>(2==1==0);
  12. int Ox06 = ('|'||'|'|'|')["||||||||"]%*"error";
  13. int Ox07 = '.'>>!false;
  14. int Ox08 = '\\'>>('!'>>(1<<2));
  15. int Ox09 = '/'-'/'/'/'>>'/'/'/';
  16. int Ox0a = (*"")["yes"]^(*"")["no"];
  17. int Ox0b = *"yes"^*"no";
  18. int Ox0c = '0'/2-!*"";
  19. int Ox0d = ((!'!'+'+')>>true)+(true<<true);
  20. int Ox0e = (-~true^!false)*(true<<(-~true|!false))-!false;
  21. int Ox0f = '!'-'^'%*"*";
  22. int Ox10 = -~*" L"^-~*"5Z";
  23. int Ox11 = *"Totally" -* "not" +* "0x17" + true;
  24. int Ox12 = -~!*""*-~!*""*-~!*""*-~!*""*-~!*""+~!*""*-~!*""*-~!*""-true;
  25. int Ox13 = -compl(-compl true xor true)<<-compl true|'8'>>('1'^'2');
  26. int Ox14 = '^'>>('<'^'>');
  27. int Ox15 = *"'"-(' '>>!0);
  28. int Ox16 = '_'>>-~1;
  29. int Ox17 = 010-001+010+010;
  30.  
  31. printf(
  32. "0x%.2x 0x%.2x 0x%.2x 0x%.2x\n"
  33. "0x%.2x 0x%.2x 0x%.2x 0x%.2x\n"
  34. "0x%.2x 0x%.2x 0x%.2x 0x%.2x\n"
  35. "0x%.2x 0x%.2x 0x%.2x 0x%.2x\n"
  36. "0x%.2x 0x%.2x 0x%.2x 0x%.2x\n"
  37. "0x%.2x 0x%.2x 0x%.2x\n",
  38.  
  39. Ox01, Ox02, Ox03, Ox04,
  40. Ox05, Ox06, Ox07, Ox08,
  41. Ox09, Ox0a, Ox0b, Ox0c,
  42. Ox0d, Ox0e, Ox0f, Ox10,
  43. Ox11, Ox12, Ox13, Ox14,
  44. Ox15, Ox16, Ox17);
  45. return 0;
  46. }
Success #stdin #stdout 0s 4328KB
stdin
Standard input is empty
stdout
0x17 0x17 0x17 0x17
0x17 0x17 0x17 0x17
0x17 0x17 0x17 0x17
0x17 0x17 0x17 0x17
0x17 0x17 0x17 0x17
0x17 0x17 0x17