結果
問題 | No.486 3 Straight Win(3連勝) |
ユーザー |
|
提出日時 | 2017-03-08 13:55:07 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 2,000 ms |
コード長 | 236 bytes |
コンパイル時間 | 386 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-26 04:16:29 |
合計ジャッジ時間 | 1,458 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 28 |
ソースコード
s = raw_input() result = None for i in xrange(len(s) - 2): t = s[i: i + 3] if t == 'OOO' and result is None: result = 'East' if t == 'XXX' and result is None: result = 'West' if result is None: result = 'NA' print result