結果
| 問題 |
No.143 豆
|
| コンテスト | |
| ユーザー |
nobigomu
|
| 提出日時 | 2018-03-23 17:38:32 |
| 言語 | Lua (LuaJit 2.1.1734355927) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 271 bytes |
| コンパイル時間 | 48 ms |
| コンパイル使用メモリ | 6,812 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-23 10:56:20 |
| 合計ジャッジ時間 | 691 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
ソースコード
print((function(f, s1, s2)
return f(s1, s2)
end)(function (s1, s2)
local k, n = s1:match("(%d+)%s(%d+)")
local r = tonumber(k) * tonumber(n)
s2:gsub("%d+", function (e) r = r - tonumber(e) end)
return r < 0 and -1 or r
end, io.stdin:read("*l"), io.stdin:read("*l")))
nobigomu