結果
問題 |
No.154 市バス
|
ユーザー |
![]() |
提出日時 | 2024-01-03 21:45:02 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 319 bytes |
コンパイル時間 | 416 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-27 18:28:26 |
合計ジャッジ時間 | 2,513 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | AC * 5 WA * 3 |
ソースコード
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")