QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505560#5972. Pegmanxiaowuc115 ✓1ms3544kbC++172.3kb2024-08-05 06:08:212024-08-05 06:08:25

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 5
Accepted

Test #1:

score: 5
Accepted
time: 0ms
memory: 3532kb

input:

100
2 1
^
^
2 2
>v
^<
3 3
...
.^.
...
1 1
.
4 4
.>>>
>...
>...
.>>>
4 4
.>>.
^..v
^..v
.<<.
4 4
>>>.
^..v
^..v
^<<.
4 4
>>>v
^<<<
^...
^<<<
4 4
>>v<
..v.
..v.
^<<.
4 4
.^^.
^..^
^^^^
^..^
4 4
^..^
<^^>
<..>
v..v
1 4
<..>
1 1
^
1 1
v
4 3
.<v
^<.
<<.
<v<
1 2
>^
1 2
^<
2 3
<.>
<vv
4 4
>><>
v<^^
>^^v
v>...

output:

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

result:

ok 100 lines

Subtask #2:

score: 10
Accepted

Test #2:

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

input:

100
2 1
^
^
2 2
>v
^<
3 3
...
.^.
...
1 1
.
4 4
.>>>
>...
>...
.>>>
4 4
.>>.
^..v
^..v
.<<.
4 4
>>>.
^..v
^..v
^<<.
4 4
>>>v
^<<<
^...
^<<<
4 4
>>v<
..v.
..v.
^<<.
4 4
.^^.
^..^
^^^^
^..^
4 4
^..^
<^^>
<..>
v..v
3 4
..>v
v..^
<>v>
18 7
<>><<^v
^v>.>^>
>^.v>>>
<<>^..>
<<v>.>.
^>>^><^
^v^<<><
v<^^v^^
...

output:

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

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed