結果

問題 No.745 letinopia raoha
ユーザー caleicalei
提出日時 2020-01-23 01:01:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 419 bytes
コンパイル時間 328 ms
コンパイル使用メモリ 10,760 KB
実行使用メモリ 8,232 KB
最終ジャッジ日時 2023-09-25 00:18:51
合計ジャッジ時間 1,257 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,996 KB
testcase_01 AC 15 ms
8,084 KB
testcase_02 AC 16 ms
7,840 KB
testcase_03 AC 15 ms
7,788 KB
testcase_04 AC 16 ms
8,168 KB
testcase_05 AC 16 ms
7,800 KB
testcase_06 AC 16 ms
7,872 KB
testcase_07 AC 15 ms
7,928 KB
testcase_08 AC 16 ms
7,780 KB
testcase_09 AC 16 ms
8,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# yukicoder No.745 letinopia raoha 2020/01/22

a,b,c,d=map(int,input().split())
if d==10:
    print('Impossible')
    exit()
print('Possible')
ml=0
score=0
tmp=0
while b:
    tmp=min(100,b)
    score+=tmp*50*(2**(ml//100))
    ml+=tmp
    b-=tmp

tmp2=min(100-(tmp%100),a)
score+=tmp2*100*(2**(ml//100))
ml+=tmp2
a-=tmp2

while a:
    tmp=min(100,a)
    score+=tmp*100*(2**(ml//100))
    ml+=tmp
    a-=tmp
print(score)
0