結果
| 問題 |
No.745 letinopia raoha
|
| コンテスト | |
| ユーザー |
rythem00359
|
| 提出日時 | 2020-08-17 17:03:54 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 397 bytes |
| コンパイル時間 | 77 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-10-11 11:09:03 |
| 合計ジャッジ時間 | 1,148 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 RE * 1 |
| other | AC * 6 RE * 2 |
ソースコード
a,b,c,d=map(int,input().split())
if d>=10:
print('Impossible')
else:
ans=0
i=-1
while b>0:
i+=1
ans+=min(b,100)*50*2**i
b-=100
if b<100:
i+=1
ans+=b*50*2**i+min(100-b,a)*100*2**i
a-=100-b
b=0
while a>0:
i+=1
ans+=min(a,100)*100*2**i
a-=100
print('Possible\n{}'.format(ans))
rythem00359