結果

問題 No.745 letinopia raoha
ユーザー jiromarujiromaru
提出日時 2019-01-11 00:21:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 478 bytes
コンパイル時間 579 ms
コンパイル使用メモリ 10,752 KB
実行使用メモリ 7,932 KB
最終ジャッジ日時 2023-08-16 09:10:21
合計ジャッジ時間 1,108 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,836 KB
testcase_01 AC 15 ms
7,932 KB
testcase_02 AC 16 ms
7,784 KB
testcase_03 AC 17 ms
7,788 KB
testcase_04 AC 16 ms
7,840 KB
testcase_05 AC 17 ms
7,756 KB
testcase_06 AC 16 ms
7,836 KB
testcase_07 WA -
testcase_08 AC 16 ms
7,892 KB
testcase_09 AC 15 ms
7,796 KB
権限があれば一括ダウンロードができます

ソースコード

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