QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#833859#8118. Pahuljicexiaowuc150 ✓16ms10752kbPython31.7kb2024-12-27 03:59:452024-12-27 03:59:45

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 11
Accepted

Test #1:

score: 11
Accepted
time: 5ms
memory: 10740kb

input:

10 10
.\|/......
.-+-\|/...
./|\-+-...
..\|/|\...
..-+-.....
../|\\|/..
.....-+-..
...../|\..
..........
..........

output:

1

result:

ok single line: '1'

Test #2:

score: 11
Accepted
time: 10ms
memory: 10580kb

input:

20 20
......\|/...........
......-+-...........
....../|\.......\|/.
........\|/.\|/.-+-.
........-+-.-+-./|\.
\|/...../|\./|\.\|/.
-+-...\|/.\|/...-+-.
/|\...-+-.-+-.../|\.
...\|//|\./|\.......
...-+-..............
.../|\..............
..........\|/.......
.......\|/-+-.......
.......-+-/|\..\|/..
...

output:

1

result:

ok single line: '1'

Test #3:

score: 11
Accepted
time: 15ms
memory: 10648kb

input:

50 50
......\|/.....................................\|/.
......-+-.\|/.................................-+-.
....../|\.-+-.........\|/.\|/.\|/..........\|//|\.
........../|\|/.......-+-.-+-.-+-..\|/.....-+-\|/.
............-+-\|/..\|/|\./|\./|\|/-+-\|/../|\-+-.
........\|/./|\-+-..-+-...\|/...-+-/|\-...

output:

1

result:

ok single line: '1'

Test #4:

score: 11
Accepted
time: 11ms
memory: 10660kb

input:

50 50
...................\|/............................
...................-+-.........\|/................
.......\|/........./|\.........-+-...........\|/..
.......-+-...................../|\...........-+-..
.\|/.../|\....\|/............\|/..\|/......../|\..
.-+-..........-+-\|/.........-+-..-+-.\...

output:

1

result:

ok single line: '1'

Test #5:

score: 11
Accepted
time: 15ms
memory: 10604kb

input:

10 10
..+..\/..-
/.--|\+..+
/..--++.|.
|.-+.-....
...+....+.
.\.\/..+|-
+.|\|..++.
..\\|\\|..
.-.-\|-/..
+\//.+--.\

output:

0

result:

ok single line: '0'

Test #6:

score: 11
Accepted
time: 7ms
memory: 10600kb

input:

20 20
../.||..+.\|+/..\\\\
|++.+./....\\/..++..
..+/...+|//+.|/.\|.\
\|..|..\.\+\..|-.\.-
|\.+-\.....-..|..+.|
.\-+...+///+.|.....+
\-/\...-..../.|/+.+.
-.....++|/+..-...\-\
-+..+...\-..++.+-../
//+.+.++.-|//../+.\|
.|...\..../../+.|+-.
\/---\..-|/\/......\
|||./+-./.|.\\|./|--
./|.\....\+...\/..+|
...

output:

0

result:

ok single line: '0'

Test #7:

score: 11
Accepted
time: 10ms
memory: 10604kb

input:

50 50
|\/.+/.+../....-+\..../+/../-/.|-./...\..+-\+.|.|+
\.-.-..../..|-......|-\..+.\..|.\...-/..-..\-|.|/-
./\..+/.-++/\-+./\+.\.-|+.....++.|-....\./|..-\--.
.\./.|.../../..|./.../\.+..+\.../......-|-.//...|+
\../.+-../.../.|..|../+......//./.-+\+.\/-|\++/+..
../.\...\\..|..\.-/.-|\.+||.|../\\\..+....

output:

0

result:

ok single line: '0'

Test #8:

score: 11
Accepted
time: 11ms
memory: 10588kb

input:

50 50
.....\.++...+.....+./.-..-....|..\--....+.+..\.../
|+.+-.|..++|...+|.++.|.../..+.|.+...\\.-+..+./\-/-
.....\-.\/-\/\-/.-/...\++...+\|\.\...//.-|\....\\/
...-.../+/.|\\.\+..-//../..|--..\+.++\.+|..|+|\../
./+.-\-+..||\..|-/....-.|\/-./\\-+.|..|/\-../...-+
--|.|-||\-.....\..-|-../\...+-|.\-+\..\...

output:

0

result:

ok single line: '0'

Subtask #2:

score: 11
Accepted

Test #9:

score: 11
Accepted
time: 0ms
memory: 10648kb

input:

5 5
.|../
.|./.
\|/..
-+---
/|\..

output:

1

result:

ok single line: '1'

Test #10:

score: 11
Accepted
time: 0ms
memory: 10548kb

input:

10 10
.\/|.//...
./-|..../.
---+------
.\/|\.....
././.\..\.
/..|..\...
...|...\\.
...|....\.
...|.--\/\
...|..\...

output:

0

result:

ok single line: '0'

Test #11:

score: 11
Accepted
time: 15ms
memory: 10744kb

input:

20 20
/.......././.\....|.
......../.....\...|.
...............\..|.
................\.|.
../..............\|/
\-----------------+-
......./.\......./|\
..................|.
.............../..|.
............./....|.
............./....|.
............/...../.
.........../......|.
.......././.......|.
...

output:

1

result:

ok single line: '1'

Test #12:

score: 11
Accepted
time: 7ms
memory: 10632kb

input:

20 20
...............|....
\..............|....
.\.............|....
|.\............|....
.-.\..\........|....
....\..........|....
.....\.........|....
......\...|....|.-..
.......\.......|.|..
....-...\......|....
.....-...\.....|....
..........\....|....
|..........\...|.../
............\..|../.
...

output:

0

result:

ok single line: '0'

Test #13:

score: 11
Accepted
time: 15ms
memory: 10532kb

input:

50 50
.....-\............/....|...........\......|......
/........./...-.|\..\..-.............\.../.|...../
.../...-\.....-/..-........../|......./....|..../.
.....\...|......./................/....\...|..//.\
.................|.........././...|.....\/.|../...
.......\.........\.../........\....\./\...

output:

2

result:

ok single line: '2'

Test #14:

score: 11
Accepted
time: 10ms
memory: 10716kb

input:

50 50
-........./....../......||........../.............
../\....//.-.......|.....|........................
..-..../.................|..........-.........-...
.................../.\...|...../............/....-
..|.|....\-..../...|....-||.......-...-......\./..
...-././.....-....\..-...|./..............

output:

3

result:

ok single line: '3'

Test #15:

score: 11
Accepted
time: 15ms
memory: 10604kb

input:

50 50
..............\.\.......\.\........./....|........
.........................\...............|........
...............\..........\..............|../.....
.............\.............\..........\../........
..\.........................\\...........|........
...........\...\.............\.....\......

output:

7

result:

ok single line: '7'

Subtask #3:

score: 28
Accepted

Test #16:

score: 28
Accepted
time: 15ms
memory: 10700kb

input:

5 5
.|./\
\|/..
-+---
/|\..
.|.\/

output:

1

result:

ok single line: '1'

Test #17:

score: 28
Accepted
time: 12ms
memory: 10640kb

input:

10 10
......\|/.
.\.|./-+-.
..\|/./|\.
.--+--....
.\/|\/....
./\|/\....
.--+--....
../|\.\|/.
./.|.\-+-.
....../|\.

output:

2

result:

ok single line: '2'

Test #18:

score: 28
Accepted
time: 16ms
memory: 10596kb

input:

20 20
.\|/\|/\|/..\.|./...
.-+--+--+--..\|/....
./|\/|\/|\.---+---..
\.|././\|/\../|\....
.\|/...-+-../.|.\...
--+--../|\|/..|..\..
./|\.....-+-........
/.|.\..../|\.\..|../
....\..|../...\.|./.
.....\.|./.....\|/..
\|/...\|/.\|/---+---
-+-.---+---+-../|\..
/|\/../|\./|\./.|.\\
\|/../.|.\.../..|..\
...

output:

3

result:

ok single line: '3'

Test #19:

score: 28
Accepted
time: 15ms
memory: 10708kb

input:

30 30
.\.|./....\|/.\|/\|/\|/.......
..\|/.....-+-.-+--+--+-.\|/...
---+------/|\\/|\/|\/|\.-+----
../|\..\|/....\|/...\.|./|\...
./.|.\.-+-\|/--+--...\|/......
/..|..\/|\-+-./|\...--+--.....
...|...\\./|\/.||\|/./|\/..../
.|.|.../\\......|-+-/.|/\\../.
.|.|../..\\.....|/|\../...\/..
.|.../..\.|\/.....

output:

8

result:

ok single line: '8'

Test #20:

score: 28
Accepted
time: 5ms
memory: 10712kb

input:

40 40
...\..|../..\|/...\|/...\|/.............
....\.|./...-+-..--+--.--+--....\|/..\|/
.....\|/..../|\..\/|\/../|\.....-+-..-+-
...---+---....\|//\|/\./.|\\.|../|\../|\
..|../|\..|...-+---+--..../\.|./..\....\
\.|./.|.\.|.../|\./|\..../..\|/....\....
.\|/..|..\|\|/.../\|/\../.---+---\|/\...
--+---....

output:

10

result:

ok single line: '10'

Test #21:

score: 28
Accepted
time: 15ms
memory: 10720kb

input:

50 50
\|/..\|/...\|/......\.......|\.|./.\/.|../.....\|/
-+----+---.-+-\.|./..\...\|/|.\|/../\.|./\.|./.-+-
/|\../|\.../|\.\|/....\..-+-|--+--/..\|/..\|/../|\
..../.|.\.|./.--+--.\.|\//|\|./|\/----+----+--....
.../.\|/.\|/.../|\...\|/\...|/.|/\.../|\../|\.....
.|./.-+---+--./\|/\.--+--\..|../..../.|...

output:

8

result:

ok single line: '8'

Test #22:

score: 28
Accepted
time: 9ms
memory: 10588kb

input:

50 50
.\.|./...\.|./..\...\|/|....../........\.|./......
..\|/\.|./\|/....\..-+-|\|/../...\.|./..\|/.......
.--+--\|/--+--.\|/\./|\|-+-./.....\|/----+----\|/.
../|\--+--/|\..-+-.\...|/|\/.\|/.--+--../|\...-+-.
./\|/\/|\/\|/\./|\|/\..|../..-+-../|\../.|.\../|\.
..-+-/.|.\-+-....-+-.\.|./.../|\./.|.\/...

output:

7

result:

ok single line: '7'

Test #23:

score: 28
Accepted
time: 15ms
memory: 10708kb

input:

50 50
...\|/......\|/..\....|..../...\|/...\|/..\|/\|/..
...-+-\|/.---+---.\...|.../.\|/-+-...-+-.--+--+--.
.\|/|\-+-.../|\....\..|../..-+-/|\|/./|\../|\/|\..
.-+-../|\../.|.\....\.|./.../|\..-+-...../.|/\|.\.
./|\....../..|..\....\|/........./|\........\|/...
..--------------------+----------------...

output:

8

result:

ok single line: '8'

Test #24:

score: 28
Accepted
time: 15ms
memory: 10588kb

input:

50 50
........\|/\|/.\|/.\|/|.\|/....\.|./....\|/../...\
\...\|/--+--+---+-.-+-|.-+-.....\|/\|/.--+--/..\|/
.\..-+-./|\/|\./|\./|\|./|\....--+--+-../|\/...-+-
.|\./|\/.|/\||\/......|\...|...//|\/|\|/.|/\.\./|\
.|.\../.....\|/.\|/\|/|.\..|..//.|.\.-+-./....\...
.|..\/.\|/.--+---+--+-|..\.|./\.|./../|...

output:

22

result:

ok single line: '22'

Test #25:

score: 28
Accepted
time: 16ms
memory: 10708kb

input:

50 50
.|-./..|++/+|./-./\\\+.-..\-..|\/..//|/-..../.-.\+
/++....+-+...-|\-.-|+..\+...\\.../\../\-|.\-.+....
-.|.--|../--|.....--|.../\/.|-/-/./.-/+|./..-.+..\
|+.\../-|.--/+|..-/.|..-/+-\.-\.../\.\+.\../+-...-
|+.+...|+....\++..+/...+|...||+..\.|..\|../.\\--..
./.\.-\.-\+/-.|.++..-.\/-+|.|.-++..////...

output:

0

result:

ok single line: '0'

Test #26:

score: 28
Accepted
time: 10ms
memory: 10716kb

input:

50 50
+/+|.-/||.+|+-/+./../|.-/\|.+\\...+\\/.++//.-.\+|/
|....../...+/..|./-/-\||++-.\+.-|.\+|/-+\.\.-//\+\
\|..//|//.|.-..|\/.\..\||/\.\|+/-+-....+..|....\.-
++.\.|.+.\/.\+||/...\+./\..\.||.|.|..|||+\.-\|++..
+\..|.-....-/..-\++.-..|\|./.-\.+.-.|..+.--..\|\.\
./..../|..|-|+.|+|.++|...+||/|\/|.-..+....

output:

0

result:

ok single line: '0'

Test #27:

score: 28
Accepted
time: 12ms
memory: 10752kb

input:

50 50
||.+|+-..\+.\|\/-|....-|//+/|///\\\\|.-.-../.+\--.
+/+./||+-\....\.\|.-.||-../...\..././\/.+-+..//.|\
.\.\+-+--\...\.//.|//.\+.-//.+/+./-/.+|./.-...../-
|+\|.....+-.-....+-..\..-../\..|\--.\++....-/./+\/
./|\/-....|/\+-|\-.|--./+/|+-.-.+.+-..+\|..-..++|.
.+-..|..+.|+\..\|/-|-+/.+..|-/.|+\|+\/\...

output:

0

result:

ok single line: '0'

Extra Test:

score: 0
Extra Test Passed