結果

問題 No.804 野菜が苦手
ユーザー Takuya NoguchiTakuya Noguchi
提出日時 2020-11-02 22:27:45
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 77 bytes
コンパイル時間 310 ms
コンパイル使用メモリ 11,140 KB
実行使用メモリ 15,296 KB
最終ジャッジ日時 2023-09-29 13:55:57
合計ジャッジ時間 3,429 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,228 KB
testcase_01 AC 81 ms
15,232 KB
testcase_02 WA -
testcase_03 AC 78 ms
15,132 KB
testcase_04 AC 79 ms
15,112 KB
testcase_05 AC 79 ms
15,196 KB
testcase_06 AC 79 ms
15,264 KB
testcase_07 AC 80 ms
15,232 KB
testcase_08 WA -
testcase_09 AC 80 ms
15,292 KB
testcase_10 AC 80 ms
15,044 KB
testcase_11 AC 79 ms
15,024 KB
testcase_12 AC 79 ms
15,092 KB
testcase_13 AC 79 ms
15,148 KB
testcase_14 AC 79 ms
15,032 KB
testcase_15 AC 81 ms
15,152 KB
testcase_16 AC 80 ms
15,136 KB
testcase_17 AC 79 ms
15,236 KB
testcase_18 WA -
testcase_19 AC 80 ms
15,268 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

A, B, C, D = gets.split.map(&:to_i)

puts A.downto(0).find { |a| a * C <= B }
0