I challenge you to find a shorter code that the condition above is met.
#define min main(){}
min
# | User | Rating |
---|---|---|
1 | jiangly | 3846 |
2 | tourist | 3799 |
3 | orzdevinwang | 3706 |
4 | jqdai0815 | 3682 |
5 | ksun48 | 3590 |
6 | Ormlis | 3533 |
7 | Benq | 3468 |
8 | Radewoosh | 3463 |
9 | ecnerwala | 3451 |
9 | Um_nik | 3451 |
# | User | Contrib. |
---|---|---|
1 | cry | 165 |
2 | -is-this-fft- | 161 |
3 | Qingyu | 160 |
4 | Dominater069 | 158 |
5 | atcoder_official | 157 |
6 | adamant | 154 |
7 | Um_nik | 151 |
8 | djm03178 | 150 |
9 | luogu_official | 149 |
10 | awoo | 147 |
I challenge you to find a shorter code that the condition above is met.
#define min main(){}
min
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:
Absolutely! Next thing i want to do is adding some other languages to the statement. I guess all the allowed languages in codeforces could do the job.
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.
I like it
python:
(it can run just with blank i guess??)
Not the same for c++.
That looks cool I guess!
it`s so fun!