QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#463747#8313. Nim CheatermekoszcML 1ms5064kbC++141010b2024-07-05 13:37:162024-07-05 13:37:17

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 5064kb

input:

7
ADD 3 10
ADD 2 4
ADD 1 5
ADD 2 1
DEL
DEL
ADD 3 5

output:

10
14
0
1
0
14
4

result:

ok 7 lines

Test #2:

score: -100
Memory Limit Exceeded

input:

1964
ADD 3004 35344
ADD 6315 69182
ADD 59 78550
ADD 13842 11063
ADD 6255 35962
DEL
ADD 13953 33214
ADD 5693 55297
ADD 1056 32685
ADD 13524 45844
ADD 5495 63087
ADD 2963 5957
ADD 7390 51487
ADD 9194 77728
DEL
ADD 1958 85909
DEL
ADD 6060 26702
ADD 13745 1556
ADD 6128 21684
ADD 9177 98957
ADD 670 35242...

output:

35344
104526
183076
194139
230101
194139
227353
282650
315335
361179
424266
430223
481710
559438
481710
567619
481710
508412
162159
116769
187943
223185
242421
197906
242421
223185
187943
229832
187943
116769
120079
116769
210895
285394
318251
289823
262181
181352
158554
173334
194467
164418
80520
1...

result: