結果
| 問題 |
No.486 3 Straight Win(3連勝)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-02-25 11:32:30 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 2,000 ms |
| コード長 | 242 bytes |
| コンパイル時間 | 438 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-26 04:06:15 |
| 合計ジャッジ時間 | 1,377 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 28 |
ソースコード
#yuki_486 s=raw_input() east=0 west=0 i=0 while True: if len(s)<=i: print 'NA' break if s[i]=='O': east+=1 west=0 elif s[i]=='X': west+=1 east=0 if east>=3: print 'East' break elif west>=3: print 'West' break i+=1