結果
問題 |
No.154 市バス
|
ユーザー |
![]() |
提出日時 | 2016-04-16 23:19:48 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 297 bytes |
コンパイル時間 | 343 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 11,648 KB |
最終ジャッジ日時 | 2024-10-13 08:16:35 |
合計ジャッジ時間 | 20,485 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 1 |
other | WA * 2 TLE * 6 |
ソースコード
for _ in[0]*input(): s=list(raw_input()) while"W"in s: w=s.index("W") if "G"not in s: break g=s.index("G") if "R"not in s: break r=s.index("R") if w<g<r: s.pop(r) s.pop(g) s.pop(w) else: break if s.count("W")==len(s): print"possible" else: print"impossible"