結果

問題 No.154 市バス
ユーザー tabataba
提出日時 2016-04-16 23:01:49
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 121 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 6,940 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-21 09:21:15
合計ジャッジ時間 1,728 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 143 ms
6,400 KB
testcase_01 AC 147 ms
6,400 KB
testcase_02 AC 147 ms
6,400 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 173 ms
6,400 KB
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in[0]*input():
	a=0
	for c in raw_input():
		if c=="G":a+=1
		if c=="R"and a>0:a-=1
	print["","im"][a>0]+"possible"
0