結果
| 問題 | No.1016 三目並べ |
| コンテスト | |
| ユーザー |
neterukun
|
| 提出日時 | 2020-04-03 22:16:35 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 2,000 ms |
| コード長 | 471 bytes |
| 記録 | |
| コンパイル時間 | 161 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 68,224 KB |
| 最終ジャッジ日時 | 2026-03-24 10:46:19 |
| 合計ジャッジ時間 | 1,067 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
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")
neterukun