NanoLine's blog

By NanoLine, history, 4 weeks ago, In English

I challenge you to find a shorter code that the condition above is met.

#define min main(){}
min
  • Vote: I like it
  • +15
  • Vote: I do not like it

»
4 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Just blank file

  • »
    »
    4 weeks ago, # ^ |
      Vote: I like it +2 Vote: I do not like it

    That does not work because c++ compiler looks for the main function.

»
4 weeks ago, # |
  Vote: I like it +4 Vote: I do not like it

cool challenge

»
3 weeks ago, # |
Rev. 3   Vote: I like it +1 Vote: I do not like it

this is the shortest i know for C++: main(){}

  • »
    »
    3 weeks ago, # ^ |
      Vote: I like it +9 Vote: I do not like it

    that wouldn't work with python interpreter but for c++ it's the shortest.

»
3 weeks ago, # |
  Vote: I like it +14 Vote: I do not like it

This one is 2 bytes shorter:

#define id main(){}
id
  • »
    »
    3 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    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.

»
3 weeks ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

python:

(it can run just with blank i guess??)