gepardo's blog

By gepardo, history, 23 months ago, In English

Do you believe this is impossible? It's really not, because some people do it. See yourself:

1775D - Friendly Spiders: 188718250 188731749 188739534

1775F - Laboratory on Pluto: 188742718 188744106 188756319

Writing source code directly in assembly language may make your code faster, as you can write the CPU instructions directly, making some critical optimization faster than the compiler-generated code.

Of course, the statement above about speed is false, and sometimes it's hard to write a faster code than the compiler generates. And, as you can see, the submissions just contain the code generated by the compiler instead of being written manually.

So, why do you think people may want to do this on contests?
  • Vote: I like it
  • +83
  • Vote: I do not like it

»
23 months ago, # |
Rev. 2   Vote: I like it +11 Vote: I do not like it

Oh

Do it make faster???

Can I solve problems, which directed to $$$O(n \cdot log(n))$$$ solution, by $$$O(n^2)$$$?

I will be more powerful if learn assembler!!!

»
23 months ago, # |
  Vote: I like it +15 Vote: I do not like it

Sir, but maybe the user just wants to write 700 lines of code just for fun; who doesn't like writing assempbly for CP????

»
14 months ago, # |
  Vote: I like it +8 Vote: I do not like it

There're something like those in the code:

	.ident	"GCC: (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 12.2.0"

or

	call	_ZNSt5dequeIiSaIiEE9push_backERKi

Those are the behavior of a C++ compiler, namely, GCC, those _Z* stuff are name mangling.