I challenge you to find a shorter code that the condition above is met.
#define min main(){}
min
| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | jiangly | 3810 |
| 2 | Benq | 3676 |
| 3 | Kevin114514 | 3655 |
| 4 | maroonrk | 3463 |
| 5 | strapple | 3447 |
| 6 | Um_nik | 3387 |
| 7 | heuristica | 3322 |
| 8 | turmax | 3317 |
| 9 | tourist | 3307 |
| 10 | jiangbowen | 3291 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | Qingyu | 156 |
| 2 | nik_exists | 150 |
| 2 | maspy | 150 |
| 4 | Um_nik | 141 |
| 5 | Errichto | 139 |
| 6 | adamant | 137 |
| 7 | AmShZ | 135 |
| 8 | BledDest | 132 |
| 9 | maroonrk | 131 |
| 10 | qwexd | 129 |
I challenge you to find a shorter code that the condition above is met.
#define min main(){}
min
| Название |
|---|



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!