結果
| 問題 |
No.1016 三目並べ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-03 22:57:11 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 472 bytes |
| コンパイル時間 | 101 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-03 05:27:20 |
| 合計ジャッジ時間 | 1,004 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 10 |
ソースコード
import sys
cand = ['--o-', '-o--', '-oo', 'oo-', 'ooo']
i = 1
while i < 2000:
cand.append('o' + '-' * i + 'o')
i = i * 2 + 1
for c in cand:
print(cand)
t = int(sys.stdin.readline().rstrip())
def main():
for _ in range(t):
n, s = sys.stdin.readline().split()
for c in cand:
if s.find(c) != -1:
print('O')
break
else:
print('X')
if __name__ == '__main__':
main()