結果
| 問題 | No.154 市バス |
| コンテスト | |
| ユーザー |
taba
|
| 提出日時 | 2016-04-16 23:19:48 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 297 bytes |
| 記録 | |
| コンパイル時間 | 141 ms |
| コンパイル使用メモリ | 77,720 KB |
| 最終ジャッジ日時 | 2025-12-03 20:27:18 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | MLE * 1 |
| other | MLE * 8 |
ソースコード
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"
taba