結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,936 KB
testcase_01 AC 15 ms
7,880 KB
testcase_02 AC 16 ms
7,864 KB
testcase_03 AC 15 ms
7,944 KB
testcase_04 AC 15 ms
7,824 KB
testcase_05 AC 15 ms
7,868 KB
testcase_06 AC 15 ms
7,832 KB
testcase_07 WA -
testcase_08 AC 16 ms
7,824 KB
testcase_09 AC 16 ms
7,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

std_in = input()
perfect,great,good,miss = std_in.split(" ")
cnt = 0
score = 0

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
            if cnt <=100:
                score += 1 * point
            elif cnt <= 200:
                score += 2 * point
            elif cnt <= 300:
                score += 4 * point
            elif cnt <= 400:
                score += 8 * point
            elif cnt <= 500:
                score += 16 * point
            elif cnt <= 600:
                score += 32 * point
            elif cnt <= 700:
                score += 64 * point
            elif cnt <= 800:
                score += 128 * point            
    print("Possible")
    print(score)
0