結果
| 問題 |
No.486 3 Straight Win(3連勝)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-03 15:38:23 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 2,000 ms |
| コード長 | 200 bytes |
| コンパイル時間 | 148 ms |
| コンパイル使用メモリ | 82,032 KB |
| 実行使用メモリ | 53,816 KB |
| 最終ジャッジ日時 | 2024-06-30 01:37:36 |
| 合計ジャッジ時間 | 2,076 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 28 |
ソースコード
s=input()
e=0
w=0
if not 'OOO'in s and not 'XXX' in s:
print('NA')
else:
for i in range(2,len(s)):
if 'OOO' in s[:i+1]:
print('East')
break
elif 'XXX' in s[:i+1]:
print('West')
break