Блог пользователя gepardo

Автор gepardo, история, 16 месяцев назад, По-английски

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?
  • Проголосовать: нравится
  • +83
  • Проголосовать: не нравится

»
16 месяцев назад, # |
Rev. 2   Проголосовать: нравится +11 Проголосовать: не нравится

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!!!

»
16 месяцев назад, # |
  Проголосовать: нравится +15 Проголосовать: не нравится

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

»
7 месяцев назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

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.