QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#52494#4234. Tic Tac Toe CountingHuangHanShengWA 138ms4552kbC++143.5kb2022-10-04 12:57:012022-10-04 12:57:07

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3792kb

input:

4
XX..O....
X...OX...
OOOX.X.X.
OOOXXX...

output:

191 194
232 200
0 1
-1 -1

result:

ok 4 lines

Test #2:

score: 0
Accepted
time: 38ms
memory: 3792kb

input:

100000
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
.........
......

output:

131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
131184 77904
1...

result:

ok 100000 lines

Test #3:

score: -100
Wrong Answer
time: 138ms
memory: 4552kb

input:

100000
.........
X........
O........
.X.......
XX.......
OX.......
.O.......
XO.......
OO.......
..X......
X.X......
O.X......
.XX......
XXX......
OXX......
.OX......
XOX......
OOX......
..O......
X.O......
O.O......
.XO......
XXO......
OXO......
.OO......
XOO......
OOO......
...X.....
X..X.....
O.....

output:

131184 77904
14652 7896
3384 16044
14232 10176
1878 624
1798 1276
5904 16392
2048 756
144 1861
14652 7896
1966 120
1832 1132
1878 624
1 0
220 248
2048 756
268 144
136 316
3384 16044
1832 1132
0 1751
1798 1276
220 248
16 348
144 1861
136 316
0 1
14232 10176
1878 624
1798 1276
2176 1104
286 36
264 188...

result:

wrong answer 3rd lines differ - expected: '-1 -1', found: '3384 16044'