結果

問題 No.1016 三目並べ
ユーザー もりをもりを
提出日時 2020-04-03 21:53:12
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 313 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 86,980 KB
実行使用メモリ 71,344 KB
最終ジャッジ日時 2023-09-16 01:11:32
合計ジャッジ時間 1,844 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,344 KB
testcase_01 AC 69 ms
71,168 KB
testcase_02 AC 70 ms
70,968 KB
testcase_03 AC 72 ms
71,136 KB
testcase_04 WA -
testcase_05 AC 72 ms
71,148 KB
testcase_06 AC 70 ms
71,264 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())

def check(s, pattern):
    return s.count(pattern) > 0

for _ in range(T):
    _, s = input().split()
    ok = False
    ok |= check(s, 'ooo')
    ok |= check(s, 'o-o')
    ok |= check(s, 'oo-')
    ok |= check(s, '-oo')
    ok |= check(s, '-o--')
    ok |= check(s, '--o-')
    print("XO"[ok])
0