結果

問題 No.745 letinopia raoha
ユーザー jiromaru
提出日時 2019-01-11 00:21:06
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 478 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-24 21:18:49
合計ジャッジ時間 899 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

stdin = input()
perfect,great,good,miss = stdin.split(" ")
cnt = 0
score = 0
dic = {1:100,2:200,4:300,8:400,16:500,32:600,64:700,128:800}
if int(miss) >= 10:
    print("Impossible")

else:
    for cate,point in {great:50,perfect:100}.items():
        for i in range(1,int(cate) + 1):
            cnt += 1
            for rate,line in dic.items():
                if cnt <= line and cnt > line-100:
                    score += rate * point
    print("Possible")
    print(score)
0