結果

問題 No.1016 三目並べ
ユーザー 👑 rin204rin204
提出日時 2022-03-21 21:02:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 311 ms
コンパイル使用メモリ 82,448 KB
実行使用メモリ 54,352 KB
最終ジャッジ日時 2024-04-17 17:33:59
合計ジャッジ時間 1,166 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
51,584 KB
testcase_01 AC 30 ms
51,840 KB
testcase_02 AC 30 ms
51,968 KB
testcase_03 AC 32 ms
52,480 KB
testcase_04 WA -
testcase_05 AC 30 ms
52,480 KB
testcase_06 AC 32 ms
52,480 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

win = ["ooo", "-oo", "o-o", "oo-", "-o--", "--o-"]
def solve():
    n, S = input().split()
    for w in win:
        if w in S:
            print("O")
            return
    print("X")
    
for _ in range(int(input())):
    solve()
0