結果
問題 | No.1016 三目並べ |
ユーザー | neterukun |
提出日時 | 2020-04-03 22:16:35 |
言語 | PyPy3 (7.3.13) |
結果 |
AC
|
実行時間 | 93 ms / 2,000 ms |
コード長 | 471 bytes |
コンパイル時間 | 272 ms |
コンパイル使用メモリ | 87,104 KB |
実行使用メモリ | 76,700 KB |
最終ジャッジ日時 | 2023-09-16 02:23:32 |
合計ジャッジ時間 | 1,840 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 71 ms
71,368 KB |
testcase_01 | AC | 72 ms
71,536 KB |
testcase_02 | AC | 72 ms
71,320 KB |
testcase_03 | AC | 75 ms
71,192 KB |
testcase_04 | AC | 74 ms
71,244 KB |
testcase_05 | AC | 76 ms
71,192 KB |
testcase_06 | AC | 74 ms
71,336 KB |
testcase_07 | AC | 93 ms
76,700 KB |
testcase_08 | AC | 85 ms
76,296 KB |
testcase_09 | AC | 88 ms
76,192 KB |
testcase_10 | AC | 88 ms
76,168 KB |
ソースコード
t = int(input()) for _ in range(t): info = list(input().split()) n, s = info n = int(n) li = s.split("x") for string in li: if len(string) <= 2: continue if string == "-o-": continue if string[1:-1].count("o") > 0: print("O") break if string[0] == "o" and string[-1] == "o" and len(string) % 2 == 1: print("O") break else: print("X")