結果
| 問題 | No.745 letinopia raoha |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-14 00:40:41 |
| 言語 | Lua (LuaJit 2.1.1774638290) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 495 bytes |
| 記録 | |
| コンパイル時間 | 74 ms |
| コンパイル使用メモリ | 6,400 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-04 19:27:36 |
| 合計ジャッジ時間 | 591 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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