I challenge you to find a shorter code that the condition above is met.
#define min main(){}
min
I challenge you to find a shorter code that the condition above is met.
#define min main(){}
min
| # | User | Rating |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3611 |
| 4 | jiangly | 3583 |
| 5 | strapple | 3515 |
| 6 | tourist | 3470 |
| 7 | Radewoosh | 3415 |
| 8 | Um_nik | 3376 |
| 9 | maroonrk | 3361 |
| 10 | XVIII | 3345 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 162 |
| 2 | adamant | 148 |
| 3 | Um_nik | 146 |
| 4 | Dominater069 | 143 |
| 5 | errorgorn | 141 |
| 6 | cry | 138 |
| 7 | Proof_by_QED | 136 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 10 | soullless | 133 |
| Name |
|---|



Just blank file
That does not work because c++ compiler looks for the main function.
cool challenge
this is the shortest i know for C++:
main(){}that wouldn't work with python interpreter but for c++ it's the shortest.
This one is 2 bytes shorter:
No 1-letter function exists in Python 3.12 so I'm pretty sure this is the shortest.
Thanks for replying; you brought my attention back to this problem, which caused me to think more about it. Turns out, there is a shorter solution. It uses an entirely different idea. Here it is:
This compiles with g++ and runs with Python 3.11 (probably works with 3.12 too). It is 1 byte shorter than my previous solution.
An even shorter solution can be compiled with gcc as C source code, but doesn't compile with g++ as C++ source code:
With some clever Python semicolon usage, you can reduce this from 24 bytes CRLF/21 bytes LF to 22 bytes CRLF/20 bytes LF.
That looks cool I guess!
it`s so fun!