結果

問題 No.804 野菜が苦手
ユーザー 826814741_6
提出日時 2019-07-20 13:17:21
言語 Lua
(LuaJit 2.1.1734355927)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 249 ms
コンパイル使用メモリ 7,200 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-29 17:27:01
合計ジャッジ時間 1,270 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

print((function (A, B, C, D)
	function f(c,r) return c<=A and c*C<=B and c+c*C<=D and f(c+1,r+1) or r end
	return f
end)(io.stdin:read("*n"),io.stdin:read("*n"),io.stdin:read("*n"),io.stdin:read("*n"))(1,0))
0