QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#731888#9177. String and NailsMaMengQiWA 51ms6788kbC++11426b2024-11-10 12:08:332024-11-10 12:08:33

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3584kb

input:

3
1 1
2 4
3 1

output:

YES
1 1
2 4

result:

ok Everything ok

Test #2:

score: 0
Accepted
time: 0ms
memory: 3644kb

input:

1
1000000000 0

output:

YES

result:

ok Everything ok

Test #3:

score: 0
Accepted
time: 51ms
memory: 6756kb

input:

200000
500000000 500000000
500244009 499720246
500488018 499440492
500732027 499160738
500976036 498880984
501220045 498601230
501464054 498321476
501708063 498041722
501952072 497761968
502196081 497482214
502440090 497202460
502684099 496922706
502928108 496642952
503172117 496363198
503416126 496...

output:

YES
500000000 500000000
500244009 499720246
500279754 500244009
500488018 499440492
500523763 499964255
500559508 500488018
500732027 499160738
500767772 499684501
500803517 500208264
500839262 500732027
500976036 498880984
501011781 499404747
501047526 499928510
501083271 500452273
501119016 500976...

result:

ok Everything ok

Test #4:

score: 0
Accepted
time: 47ms
memory: 6788kb

input:

200000
500000000 500000000
500222156 499645622
500444312 499291244
500666468 498936866
500888624 498582488
501110780 498228110
501332936 497873732
501555092 497519354
501777248 497164976
501999404 496810598
502221560 496456220
502443716 496101842
502665872 495747464
502888028 495393086
503110184 495...

output:

YES
500000000 500000000
500222156 499645622
500354378 500222156
500444312 499291244
500576534 499867778
500666468 498936866
500708756 500444312
500798690 499513400
500888624 498582488
500930912 500089934
501020846 499159022
501063134 500666468
501110780 498228110
501153068 499735556
501243002 498804...

result:

ok Everything ok

Test #5:

score: -100
Wrong Answer
time: 32ms
memory: 6724kb

input:

200000
500000000 500000000
500000000 499720246
500000000 499440492
500000000 499160738
500000000 498880984
500000000 498601230
500000000 498321476
500000000 498041722
500000000 497761968
500000000 497482214
500000000 497202460
500000000 496922706
500000000 496642952
500000000 496363198
500000000 496...

output:

YES
500000000 461393948
500000000 464750996
500000000 464471242
500000000 464191488
500000000 463911734
500000000 463631980
500000000 463352226
500000000 463072472
500000000 462792718
500000000 462512964
500000000 462233210
500000000 461953456
500000000 461673702
500000000 465030750
500000000 461114...

result:

wrong answer Wrong answer