結果

問題 No.1446 ハンバーグと納豆ごはん
ユーザー maguroflymagurofly
提出日時 2021-03-31 15:20:48
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 104 bytes
コンパイル時間 67 ms
コンパイル使用メモリ 11,248 KB
実行使用メモリ 15,384 KB
最終ジャッジ日時 2023-08-21 12:28:08
合計ジャッジ時間 4,554 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 78 ms
15,320 KB
testcase_02 AC 78 ms
15,128 KB
testcase_03 WA -
testcase_04 AC 80 ms
15,128 KB
testcase_05 AC 81 ms
15,268 KB
testcase_06 AC 78 ms
15,268 KB
testcase_07 AC 79 ms
15,168 KB
testcase_08 AC 79 ms
15,196 KB
testcase_09 AC 79 ms
15,176 KB
testcase_10 WA -
testcase_11 AC 79 ms
15,264 KB
testcase_12 AC 80 ms
15,048 KB
testcase_13 AC 80 ms
15,236 KB
testcase_14 AC 79 ms
15,164 KB
testcase_15 AC 78 ms
15,136 KB
testcase_16 AC 78 ms
15,132 KB
testcase_17 AC 78 ms
15,284 KB
testcase_18 AC 79 ms
15,360 KB
testcase_19 AC 79 ms
15,044 KB
testcase_20 AC 78 ms
15,212 KB
testcase_21 AC 80 ms
15,080 KB
testcase_22 AC 79 ms
15,272 KB
testcase_23 AC 80 ms
15,092 KB
testcase_24 AC 80 ms
15,384 KB
testcase_25 AC 79 ms
15,124 KB
testcase_26 AC 80 ms
15,200 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 80 ms
15,172 KB
testcase_30 AC 80 ms
15,204 KB
testcase_31 AC 79 ms
15,244 KB
testcase_32 AC 78 ms
15,292 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 78 ms
15,148 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

A, B, N, M = gets.split.map(&:to_i)
if A >= B
    puts B + (A - B) / N
else
    puts A + (B - A) / M
end
0