結果
| 問題 |
No.745 letinopia raoha
|
| コンテスト | |
| ユーザー |
iad_2889
|
| 提出日時 | 2019-05-10 09:58:38 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 2,000 ms |
| コード長 | 533 bytes |
| コンパイル時間 | 83 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-02 00:56:03 |
| 合計ジャッジ時間 | 1,044 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
A,B,C,D = map(int,input().split())
if D >= 10:
print("Impossible")
else:
score = 0
chain = 1
while B >= 100:
score+=50 * 100 * chain
chain*=2
B-=100
score+=50 * B * chain
combo = 100 - B
if A < combo:
score+=100 * A * chain
else:
score+=100 * combo * chain
A-=combo
chain*=2
while A >= 100:
score+=100 * 100 * chain
chain*=2
A-=100
score+=100 * A * chain
print("Possible")
print(score)
iad_2889