結果
問題 | No.486 3 Straight Win(3連勝) |
ユーザー |
|
提出日時 | 2017-07-06 22:26:27 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 289 bytes |
コンパイル時間 | 161 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-10-06 03:50:18 |
合計ジャッジ時間 | 1,563 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 20 |
ソースコード
s=input().rstrip() east=0 west=0 for i in s: if i=="O": east+=1 west=0 if 3<=east: print("EAST") break elif i=="X": west+=1 east=0 if 3<=west: print("WEST") break else: print("NA")