結果
| 問題 |
No.154 市バス
|
| ユーザー |
ntuda
|
| 提出日時 | 2024-01-03 21:38:05 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 355 bytes |
| コンパイル時間 | 407 ms |
| コンパイル使用メモリ | 82,404 KB |
| 実行使用メモリ | 76,764 KB |
| 最終ジャッジ日時 | 2024-09-27 18:28:23 |
| 合計ジャッジ時間 | 1,671 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 2 MLE * 6 |
ソースコード
dic = {"G": 0, "R": 1, "W": 2}
for _ in range(int(input())):
S = input()
X = [0, 0]
for s in S:
if dic[s] < 2:
X[dic[s]] += 1
if X[1] > X[0]:
print("impossible")
break
else:
if X[0] == X[1]:
print("possible")
else:
print("impossible")
ntuda