QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#149218#137. Wall Making GamestoccfRE 8ms5812kbC++142.4kb2023-08-24 09:10:232023-08-24 09:10:24

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3636kb

input:

3 5
..X..
.....
.....

output:

First

result:

ok single line: 'First'

Test #2:

score: 0
Accepted
time: 1ms
memory: 5700kb

input:

2 5
.....
.....

output:

First

result:

ok single line: 'First'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3436kb

input:

3 3
...
...
...

output:

First

result:

ok single line: 'First'

Test #4:

score: 0
Accepted
time: 1ms
memory: 3784kb

input:

3 1
.
.
.

output:

First

result:

ok single line: 'First'

Test #5:

score: 0
Accepted
time: 1ms
memory: 3704kb

input:

4 4
....
...X
....
....

output:

Second

result:

ok single line: 'Second'

Test #6:

score: 0
Accepted
time: 0ms
memory: 5656kb

input:

3 3
...
.X.
...

output:

First

result:

ok single line: 'First'

Test #7:

score: 0
Accepted
time: 1ms
memory: 5508kb

input:

5 2
..
X.
.X
..
..

output:

First

result:

ok single line: 'First'

Test #8:

score: 0
Accepted
time: 1ms
memory: 3744kb

input:

3 3
.X.
X..
...

output:

First

result:

ok single line: 'First'

Test #9:

score: 0
Accepted
time: 1ms
memory: 5668kb

input:

4 2
XX
XX
..
XX

output:

First

result:

ok single line: 'First'

Test #10:

score: 0
Accepted
time: 1ms
memory: 5692kb

input:

2 2
..
..

output:

Second

result:

ok single line: 'Second'

Test #11:

score: 0
Accepted
time: 1ms
memory: 3784kb

input:

4 1
.
.
.
X

output:

First

result:

ok single line: 'First'

Test #12:

score: 0
Accepted
time: 1ms
memory: 3484kb

input:

2 1
.
.

output:

First

result:

ok single line: 'First'

Test #13:

score: 0
Accepted
time: 1ms
memory: 5772kb

input:

3 4
..X.
X...
X.XX

output:

First

result:

ok single line: 'First'

Test #14:

score: 0
Accepted
time: 1ms
memory: 3636kb

input:

3 1
X
X
X

output:

Second

result:

ok single line: 'Second'

Test #15:

score: 0
Accepted
time: 2ms
memory: 5672kb

input:

2 1
.
X

output:

First

result:

ok single line: 'First'

Test #16:

score: 0
Accepted
time: 1ms
memory: 3504kb

input:

3 4
.X..
....
.X.X

output:

First

result:

ok single line: 'First'

Test #17:

score: 0
Accepted
time: 1ms
memory: 3660kb

input:

2 3
XX.
.X.

output:

First

result:

ok single line: 'First'

Test #18:

score: 0
Accepted
time: 0ms
memory: 5724kb

input:

2 4
X...
X.XX

output:

First

result:

ok single line: 'First'

Test #19:

score: 0
Accepted
time: 2ms
memory: 5812kb

input:

5 3
X..
.XX
XX.
.X.
XXX

output:

First

result:

ok single line: 'First'

Test #20:

score: 0
Accepted
time: 1ms
memory: 3784kb

input:

4 4
X.XX
....
.XXX
XXXX

output:

First

result:

ok single line: 'First'

Test #21:

score: 0
Accepted
time: 1ms
memory: 3732kb

input:

4 3
..X
XX.
..X
.X.

output:

First

result:

ok single line: 'First'

Test #22:

score: 0
Accepted
time: 1ms
memory: 5696kb

input:

3 4
XXXX
XXXX
XXXX

output:

Second

result:

ok single line: 'Second'

Test #23:

score: 0
Accepted
time: 1ms
memory: 3436kb

input:

4 1
X
X
X
X

output:

Second

result:

ok single line: 'Second'

Test #24:

score: 0
Accepted
time: 1ms
memory: 5676kb

input:

3 2
XX
X.
XX

output:

First

result:

ok single line: 'First'

Test #25:

score: 0
Accepted
time: 1ms
memory: 3500kb

input:

4 3
...
X.X
XXX
X.X

output:

First

result:

ok single line: 'First'

Test #26:

score: 0
Accepted
time: 1ms
memory: 5748kb

input:

4 3
XXX
XXX
X..
.XX

output:

Second

result:

ok single line: 'Second'

Test #27:

score: 0
Accepted
time: 1ms
memory: 3616kb

input:

2 3
XXX
X.X

output:

First

result:

ok single line: 'First'

Test #28:

score: 0
Accepted
time: 1ms
memory: 3780kb

input:

3 3
XXX
X.X
.XX

output:

Second

result:

ok single line: 'Second'

Test #29:

score: 0
Accepted
time: 1ms
memory: 3488kb

input:

4 4
.XXX
.XXX
XXXX
XXXX

output:

First

result:

ok single line: 'First'

Test #30:

score: 0
Accepted
time: 1ms
memory: 3656kb

input:

1 2
XX

output:

Second

result:

ok single line: 'Second'

Test #31:

score: 0
Accepted
time: 1ms
memory: 3696kb

input:

7 14
..............
........X.....
.....X........
.X............
..............
...X....XX....
.......X......

output:

First

result:

ok single line: 'First'

Test #32:

score: 0
Accepted
time: 1ms
memory: 3720kb

input:

9 13
X.....XX.....
......X..X...
.........X...
..........X..
.............
...........X.
....X........
X..X....X....
.X....XX.....

output:

First

result:

ok single line: 'First'

Test #33:

score: 0
Accepted
time: 1ms
memory: 3752kb

input:

10 8
..X.X...
.XX.....
X....X..
.X......
X.XXXX..
...X...X
........
XX...X.X
X...X...
........

output:

First

result:

ok single line: 'First'

Test #34:

score: 0
Accepted
time: 0ms
memory: 5596kb

input:

11 11
.X..XX...XX
XX......XX.
.X.X....X..
.....XX...X
XXX...X....
X...X...X..
X.XX.....XX
X.X.XX.....
.X.X...X...
.X.X......X
X..XX..X..X

output:

First

result:

ok single line: 'First'

Test #35:

score: 0
Accepted
time: 1ms
memory: 3732kb

input:

8 13
....X.X...XX.
....X.....XXX
XX..X.....X..
X.X.......XX.
..X.XX....XX.
XX...XX..XX.X
.XX.X..XX..X.
XXX.....XX..X

output:

First

result:

ok single line: 'First'

Test #36:

score: 0
Accepted
time: 3ms
memory: 5632kb

input:

14 14
XX.X....XXX.XX
X.XX..X.XX.XXX
....XXX.X.X...
X...XXXXX..XXX
X.X.X.X.....X.
..X.....XX.XX.
XX...X.X..X...
XXXXX..X..X.X.
...XXXX.....XX
XX.XX.XXX.XX.X
XX.X.X.XX.....
.XX.X...X....X
X.XXX..X.X.X.X
X.X..XX.XXX.XX

output:

First

result:

ok single line: 'First'

Test #37:

score: 0
Accepted
time: 1ms
memory: 3800kb

input:

12 8
X.X...XX
XXXXXX.X
X.XXXX..
XXX..XX.
..X..X..
X.X...X.
...XXXXX
........
.X.X...X
XXXX...X
X.X...XX
.......X

output:

First

result:

ok single line: 'First'

Test #38:

score: 0
Accepted
time: 1ms
memory: 3812kb

input:

6 14
..XXX.X.XX.XXX
XX.XXXXXX.XXX.
XXXXXXXXXXX.X.
XX.XXXX.XXXXXX
.XXXXXXX.XXXXX
X.X.XXXX.XX.XX

output:

First

result:

ok single line: 'First'

Test #39:

score: 0
Accepted
time: 2ms
memory: 5668kb

input:

9 7
X..XXXX
.XXXXXX
XXXXXXX
XXXX.X.
XXX.X.X
.XXXXX.
.X..XX.
.XXXXXX
XX.XXXX

output:

First

result:

ok single line: 'First'

Test #40:

score: 0
Accepted
time: 1ms
memory: 3840kb

input:

14 6
X.XXXX
XXXXXX
XXXXXX
XXXX.X
X..XX.
XXXXXX
XXXX..
.XXXXX
XXX.XX
XXXXXX
XXXXXX
X.XXXX
XX.XXX
XXXXXX

output:

First

result:

ok single line: 'First'

Test #41:

score: 0
Accepted
time: 6ms
memory: 4120kb

input:

19 18
....X.............
........X.........
..............X...
....X....X........
..................
........X..X......
.X.........X......
...........X......
X.................
..................
.............X.X..
.................X
........X..X......
....X.........X...
.............XX...
............

output:

First

result:

ok single line: 'First'

Test #42:

score: 0
Accepted
time: 1ms
memory: 3912kb

input:

16 18
..................
.....X..XX........
....X.......X....X
.........X.X.X....
.X...........X....
.......XXX....X...
.......X.X......X.
.XX........X.....X
..X.....X.........
.....X...X.....X..
........X.........
............X....X
......XX..........
.....X.....XX.....
...X.......X......
XX......X...

output:

First

result:

ok single line: 'First'

Test #43:

score: 0
Accepted
time: 8ms
memory: 3980kb

input:

18 20
.X....X....X..X..X..
...X........X...X..X
...........X........
X...X.X........XX...
.....X...X...X..X...
.X...X..XX..X.X.....
..................XX
X...XXX......X...X..
...X...X.X..X....X..
..X.......X.......X.
....X..X..X..X...X..
...X..XX............
..X.X.X...X......XX.
.X..XX...X.X..XX...X
...

output:

First

result:

ok single line: 'First'

Test #44:

score: 0
Accepted
time: 3ms
memory: 5548kb

input:

19 16
.....XXX..X....X
......XX....X...
X......X.X..XXX.
......X....X....
.....X..XXX.....
..X...X.....X...
.XX...XX..X.X.X.
..X.X..XX..X...X
.XX...XX..X.....
X.X.XX.X......X.
X..XXX.X..X..X.X
..........X...XX
.........X...XXX
.XX..XX...XXXXX.
.X..X....X.....X
................
XX.X.......X...X
X.......

output:

First

result:

ok single line: 'First'

Test #45:

score: -100
Runtime Error

input:

20 16
XX..X.XXX...X..X
X.X..XX.X..X....
.X..X.....X...XX
..X.......X...XX
XX.X.X....XX.X.X
.....X.......XX.
....XX.....XX.X.
X.XXXX..X.XX.X..
..X.XX....X..X.X
X..X.XX.......XX
....X......X.XX.
.XXX..X..XX.XX..
.XX..X.XX.X.X...
..X......X.XX...
...X..X...X.XXX.
.....XX.XXX.XX..
X.XX...XXXXX.X.X
.X.XX...

output:


result: