結果
| 問題 |
No.745 letinopia raoha
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2019-04-14 00:40:41 |
| 言語 | Lua (LuaJit 2.1.1734355927) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 495 bytes |
| コンパイル時間 | 220 ms |
| コンパイル使用メモリ | 5,248 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-15 11:28:35 |
| 合計ジャッジ時間 | 912 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
a,b,c,d=io.read("*n","*n","*n","*n")
if(10 <= d) then print("Impossible")
else
score = 0
base = 50
while(100 <= b) do
score = score + 100 * base
base = base * 2
b = b - 100
end
score = score + b * base
arem = math.min(a, 100 - b)
base = base * 2
score = score + arem * base
base = base * 2
a = a - arem
while(100 <= a) do
score = score + 100 * base
base = base * 2
a = a - 100
end
score = score + a * base
print("Possible")
print(score)
end