QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505456#5835. Picking Up Chicksxiaowuc130 ✓1ms3788kbC++171.6kb2024-08-05 05:32:152024-08-05 05:32:17

詳細信息

Subtask #1:

score: 13
Accepted

Test #1:

score: 13
Accepted
time: 0ms
memory: 3788kb

input:

100
5 3 10 5
0 2 5 6 7
1 1 1 1 4
5 3 10 5
0 2 3 5 7
2 1 1 1 4
5 3 10 5
0 2 3 4 7
2 1 1 1 4
1 0 1000000000 1
1
50
3 2 715869449 748
23776611 715818292 715845193
51 75 43
1 1 1000000000 1000
999899999
100
9 3 565626302 508
77568312 171055256 565580468 565581528 565584739 565593194 565598660 565606826 ...

output:

Case #1: 0
Case #2: 2
Case #3: IMPOSSIBLE
Case #4: 0
Case #5: 0
Case #6: IMPOSSIBLE
Case #7: IMPOSSIBLE
Case #8: 0
Case #9: 1
Case #10: IMPOSSIBLE
Case #11: 3
Case #12: 1
Case #13: 3
Case #14: 12
Case #15: 0
Case #16: 3
Case #17: 0
Case #18: 0
Case #19: 0
Case #20: IMPOSSIBLE
Case #21: 0
Case #22: 0...

result:

ok 100 lines

Subtask #2:

score: 17
Accepted

Test #2:

score: 17
Accepted
time: 1ms
memory: 3576kb

input:

100
33 22 572801880 273
572774594 572775657 572775985 572776726 572776854 572777757 572778031 572779203 572779888 572781204 572781724 572781749 572781922 572784533 572784755 572786311 572786442 572787199 572787562 572789676 572790508 572791879 572792262 572793591 572795992 572796713 572797391 572797...

output:

Case #1: IMPOSSIBLE
Case #2: 14
Case #3: IMPOSSIBLE
Case #4: IMPOSSIBLE
Case #5: 2
Case #6: 2
Case #7: IMPOSSIBLE
Case #8: 0
Case #9: 39
Case #10: 60
Case #11: IMPOSSIBLE
Case #12: 0
Case #13: 30
Case #14: 46
Case #15: IMPOSSIBLE
Case #16: IMPOSSIBLE
Case #17: IMPOSSIBLE
Case #18: 51
Case #19: 0
Cas...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed