結果

問題 No.1016 三目並べ
ユーザー hiraku
提出日時 2020-04-03 22:24:44
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 230 bytes
コンパイル時間 190 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-03 04:19:40
合計ジャッジ時間 1,139 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 6 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())
tr = ["o" + "-" * (2 ** i - 1) + "o" for i in range(2, 11)]
for _ in range(t):
  _, S = input().split()
  if any(i in S for i in ["oo-","-oo","ooo","o-o","--o-","-o--"] + tr):
    print("O")
  else:
    print("X")
0