結果
問題 | No.154 市バス |
ユーザー |
|
提出日時 | 2022-05-20 23:10:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 394 bytes |
コンパイル時間 | 371 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,776 KB |
最終ジャッジ日時 | 2024-09-20 09:33:33 |
合計ジャッジ時間 | 2,553 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | AC * 5 WA * 3 |
ソースコード
T = int(input()) tt=[] for _ in range(T): tt.append(input()) for t in tt: #print(len(t)) count=0 for i in t: if i=="G": count+=1 elif i=="R": count-=1 if count<0: count=-10**5 continue #print(count) #print(count) if count!=0: print("impossible") else: print("possible")