QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505512#5907. Lawnmowerxiaowuc140 ✓12ms3696kbC++172.3kb2024-08-05 05:51:102024-08-05 05:51:11

详细

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 1ms
memory: 3624kb

input:

100
3 3
2 1 2
1 1 1
2 1 2
5 5
2 2 2 2 2
2 1 1 1 2
2 1 2 1 2
2 1 1 1 2
2 2 2 2 2
8 3
1 2 2
2 2 1
1 2 2
2 2 2
2 2 2
2 2 2
2 1 2
1 1 2
1 1
2
7 4
2 2 2 2
2 2 2 1
1 2 1 2
2 2 2 2
2 1 1 2
1 2 2 1
2 2 2 1
8 5
1 2 1 1 2
1 1 1 2 2
1 1 1 2 2
1 2 1 2 2
1 2 1 2 2
2 1 2 2 2
2 1 2 2 2
2 2 1 1 2
8 3
2 2 2
2 2 2
2 ...

output:

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

result:

ok 100 lines

Subtask #2:

score: 30
Accepted

Test #2:

score: 30
Accepted
time: 12ms
memory: 3696kb

input:

100
1 3
2 2 2
7 6
19 18 17 19 19 19
48 55 17 41 55 54
47 76 17 41 57 77
48 75 17 41 57 74
38 38 17 38 38 38
48 78 17 40 57 77
48 52 17 41 52 51
3 1
64
66
70
10 10
23 23 23 23 23 23 23 23 23 23
23 23 23 23 23 23 23 23 23 23
23 23 23 23 23 23 23 23 23 23
23 24 23 23 23 23 23 23 23 23
23 23 23 23 23 23...

output:

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

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed