結果
問題 | No.154 市バス |
ユーザー | ntuda |
提出日時 | 2024-01-03 21:45:02 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 319 bytes |
コンパイル時間 | 199 ms |
コンパイル使用メモリ | 11,776 KB |
実行使用メモリ | 9,856 KB |
最終ジャッジ日時 | 2024-01-03 21:45:05 |
合計ジャッジ時間 | 2,728 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 218 ms
9,856 KB |
testcase_01 | AC | 208 ms
9,856 KB |
testcase_02 | AC | 202 ms
9,856 KB |
testcase_03 | AC | 179 ms
9,856 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 218 ms
9,856 KB |
testcase_08 | WA | - |
ソースコード
for _ in range(int(input())): R,G = 0,0 for s in input(): if s == "R": R += 1 if s == "G": G += 1 if R > G: print("impossible") break else: if R == G: print("possible") else: print("impossible")