結果

問題 No.745 letinopia raoha
ユーザー jiromarujiromaru
提出日時 2019-01-10 23:57:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 1,189 bytes
コンパイル時間 560 ms
コンパイル使用メモリ 10,952 KB
実行使用メモリ 8,360 KB
最終ジャッジ日時 2023-08-16 07:58:23
合計ジャッジ時間 1,666 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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

else:
    for i in range(1,int(great) + 1):
        cnt += 1
        if cnt <=100:
            score += 1 * 50
        elif cnt <= 200:
            score += 2 * 50
        elif cnt <= 300:
            score += 4 * 50
        elif cnt <= 400:
            score += 8 * 50
        elif cnt <= 500:
            score += 16 * 50
        elif cnt <= 600:
            score += 32 * 50
        elif cnt <= 700:
            score += 64 * 50
        elif cnt <= 800:
            score += 128 * 50
            
    for j in range(1,int(perfect) + 1):
        cnt += 1
        if cnt <=100:
            score += 1 * 100
        elif cnt <= 200:
            score += 2 * 100
        elif cnt <= 300:
            score += 4 * 100
        elif cnt <= 400:
            score += 8 * 100
        elif cnt <= 500:
            score += 16 * 100
        elif cnt <= 600:
            score += 32 * 100
        elif cnt <= 700:
            score += 64 * 100
        elif cnt <= 800:
            score += 128 * 100

print(score)
0