結果

問題 No.745 letinopia raoha
ユーザー jiromarujiromaru
提出日時 2019-01-11 00:20:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 478 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-05-03 17:59:46
合計ジャッジ時間 1,269 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,624 KB
testcase_01 WA -
testcase_02 AC 27 ms
10,624 KB
testcase_03 AC 26 ms
10,624 KB
testcase_04 WA -
testcase_05 AC 26 ms
10,624 KB
testcase_06 AC 26 ms
10,624 KB
testcase_07 WA -
testcase_08 AC 27 ms
10,624 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

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