QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505511#5906. Tic-Tac-Toe-Tomekxiaowuc130 ✓5ms3832kbC++172.3kb2024-08-05 05:51:022024-08-05 05:51:02

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 10
Accepted

Test #1:

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

input:

10
.XOX
XXOX
XXTO
OOOO

XOOX
XXXO
OOOX
OXOX

.OXO
.OX.
OOX.
XXXT

XXOT
XOXX
OXOX
OOOX

....
....
....
....

OO..
X...
.OO.
XXXX

XOXX
.O.O
.O.O
XOXX

XXOX
TXOO
XOOO
OXXX

.TXX
...X
.OOX
.O..

O..X
.O..
.XO.
.XXO


output:

Case #1: O won
Case #2: Draw
Case #3: X won
Case #4: X won
Case #5: Game has not completed
Case #6: X won
Case #7: O won
Case #8: Draw
Case #9: Game has not completed
Case #10: O won

result:

ok 10 lines

Subtask #2:

score: 20
Accepted

Test #2:

score: 20
Accepted
time: 5ms
memory: 3832kb

input:

1000
XXXT
....
OO..
....

XOXT
XXOO
OXOX
XXOO

XOX.
OX..
....
....

OOXX
OXXX
OX.T
O..O

XXXO
..O.
.O..
T...

XXXO
..OX
.O..
O...

XOOX
XXTO
XXOO
OOXX

XO.X
OTX.
.O..
XO..

XXT.
OOOO
..XX
.X.O

XOXT
OXXO
OXOO
XOXX

.XO.
O.XO
OXO.
XXX.

OOX.
O.X.
OOXO
XXXX

OOX.
O.OO
.XXT
XXXO

OXOO
XXXO
OOXX
OXOX

X...

output:

Case #1: X won
Case #2: Draw
Case #3: Game has not completed
Case #4: O won
Case #5: O won
Case #6: O won
Case #7: Draw
Case #8: O won
Case #9: O won
Case #10: X won
Case #11: Game has not completed
Case #12: X won
Case #13: Game has not completed
Case #14: Draw
Case #15: X won
Case #16: Game has no...

result:

ok 1000 lines

Extra Test:

score: 0
Extra Test Passed