Coder Social home page Coder Social logo

Time limit issues about judger HOT 1 CLOSED

qingdaou avatar qingdaou commented on August 18, 2024
Time limit issues

from judger.

Comments (1)

virusdefender avatar virusdefender commented on August 18, 2024

compiler optimization

g++ -O0

gdb-peda$ pdisass main
Dump of assembler code for function main:
   0x000000000000073a <+0>:	push   rbp
   0x000000000000073b <+1>:	mov    rbp,rsp
   0x000000000000073e <+4>:	mov    QWORD PTR [rbp-0x8],0x0
   0x0000000000000746 <+12>:	movabs rax,0x9184e729fff
   0x0000000000000750 <+22>:	cmp    QWORD PTR [rbp-0x8],rax
   0x0000000000000754 <+26>:	jg     0x75e <main+36>
   0x0000000000000756 <+28>:	nop
   0x0000000000000757 <+29>:	add    QWORD PTR [rbp-0x8],0x1
   0x000000000000075c <+34>:	jmp    0x746 <main+12>
   0x000000000000075e <+36>:	mov    eax,0x0
   0x0000000000000763 <+41>:	pop    rbp
   0x0000000000000764 <+42>:	ret
End of assembler dump.

g++ -O2

Dump of assembler code for function main:
   0x0000000000000630 <+0>:	xor    eax,eax
   0x0000000000000632 <+2>:	ret
End of assembler dump.

from judger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.