QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505436#5789. Watershedsxiaowuc133 ✓2ms3764kbC++172.2kb2024-08-05 05:20:512024-08-05 05:20:52

詳細信息

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 0ms
memory: 3648kb

input:

100
4 4
9 6 9 9
1 3 6 2
9 5 9 4
8 7 9 5
3 3
6 1 0
7 3 4
7 3 0
1 10
0 1 2 3 4 5 6 7 8 7
2 7
4 3 4 5 5 4 3
3 2 3 4 5 5 4
3 3
8 1 0
2 8 6
1 0 4
4 4
1 5 7 8
2 7 3 8
7 8 1 7
8 1 0 8
6 6
7 6 7 8 7 6
6 5 6 7 6 5
5 4 5 6 5 4
4 3 4 5 6 5
5 4 5 6 7 6
6 5 6 7 8 7
4 4
6 6 9 7
5 2 1 6
4 3 7 1
9 7 7 4
3 3
9 3 9
5...

output:

Case #1:
a a a b
a a b b
a a b b
a a b b
Case #2:
a a a
a a a
b b b
Case #3:
a a a a a a a a a b
Case #4:
a a a a b b b
a a a a a b b
Case #5:
a a a
b b a
b b b
Case #6:
a a b b
a a b b
a b b b
b b b b
Case #7:
a a a a b b
a a a a b b
a a a a b b
a a a a b b
a a a a b b
a a a a b b
Case #8:
a a a a
...

result:

ok 517 lines

Subtask #2:

score: 23
Accepted

Test #2:

score: 23
Accepted
time: 2ms
memory: 3764kb

input:

100
5 13
4510 4512 3024 3026 2430 2429 2425 2429 4081 4080 4064 382 378
4500 4515 3019 3009 3018 2434 2424 2438 4080 4077 4061 4081 362
4515 4519 3758 3744 3750 2435 2432 4645 4658 4036 4023 4501 367
4516 3111 3109 3748 87 92 1930 1910 1927 3912 4499 4497 4511
3112 3108 3107 3099 3111 3112 1921 1917...

output:

Case #1:
a b b c c c c c c d d d d
a b b b c c c c c e f d d
a g b b h h h e e e f d d
g g g h h h h e e e i i d
g g g g h h e e e e i i i
Case #2:
a a b b b c c c d d d d d
Case #3:
a
a
a
a
b
b
b
c
c
c
c
d
e
e
e
e
f
g
g
g
Case #4:
a b b b b b b b c c c d d d d d e e e
a b b b b b b b c c c d d d d ...

result:

ok 1460 lines

Extra Test:

score: 0
Extra Test Passed