結果
問題 |
No.486 3 Straight Win(3連勝)
|
ユーザー |
|
提出日時 | 2017-07-06 22:24:05 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 280 bytes |
コンパイル時間 | 203 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-10-06 03:49:59 |
合計ジャッジ時間 | 1,585 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 20 |
ソースコード
s=input() 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")