結果

問題 No.191 供託金
ユーザー nobigomu
提出日時 2018-03-28 19:21:23
言語 Lua
(LuaJit 2.1.1734355927)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 272 bytes
コンパイル時間 201 ms
コンパイル使用メモリ 6,684 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-25 13:14:53
合計ジャッジ時間 1,391 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

io.stdin:read("*l")
print((function (f, s)
	return f(s)
end)(function (s)
	local t,n,r = {},0,0
	for e in s:gmatch("%d+") do e=tonumber(e) n=n+e table.insert(t,e) end
	n = n/10
	for _,v in ipairs(t) do if v <= n then r = r+1 end end
	return r*30
end, io.stdin:read("*l")))
0