QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#40039#2446. Block BreakerZhangYiDeAC ✓180ms13624kbC++111.1kb2022-07-15 21:22:492022-07-15 21:22:51

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 180ms
memory: 13624kb

input:

10
1 1 2
1 1
1 1
1 2 5
1 2
1 2
1 1
1 2
1 1
1651 1852 69820
938 1459
98 243
1504 554
725 245
601 587
1465 1687
1037 1172
433 1112
173 493
1175 278
302 558
1326 633
375 1043
495 1673
1275 1672
1629 1299
1588 432
507 1754
953 270
1475 1805
1343 1096
798 1633
1124 809
525 1163
1201 1633
1381 578
1489 89...

output:

1
0
1
0
1
0
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
...

result:

ok 576535 lines