結果
| 問題 | No.486 3 Straight Win(3連勝) |
| コンテスト | |
| ユーザー |
Ohnuma
|
| 提出日時 | 2020-04-10 09:47:17 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 94 ms / 2,000 ms |
| コード長 | 319 bytes |
| 記録 | |
| コンパイル時間 | 339 ms |
| コンパイル使用メモリ | 20,564 KB |
| 実行使用メモリ | 15,356 KB |
| 最終ジャッジ日時 | 2026-04-04 14:02:28 |
| 合計ジャッジ時間 | 3,834 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 28 |
ソースコード
s = input()
i,j = None, None
if 'OOO' in s:
i=s.index('OOO')
if 'XXX' in s:
j = s.index('XXX')
if (i is None) and (j is None):
print('NA')
elif (i is None) and j!=None:
print('West')
elif i!=None and (j is None):
print('East')
else:
if i<j:
print('East')
else:
print('West')
Ohnuma