結果

問題 No.1453 手助け
ユーザー kyo1kyo1
提出日時 2021-04-20 01:03:43
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 156 bytes
コンパイル時間 265 ms
コンパイル使用メモリ 11,252 KB
実行使用メモリ 15,292 KB
最終ジャッジ日時 2023-09-17 08:35:23
合計ジャッジ時間 4,134 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,292 KB
testcase_01 AC 82 ms
15,164 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 81 ms
15,152 KB
testcase_06 WA -
testcase_07 AC 82 ms
15,104 KB
testcase_08 AC 82 ms
15,212 KB
testcase_09 AC 81 ms
15,020 KB
testcase_10 WA -
testcase_11 AC 80 ms
15,016 KB
testcase_12 WA -
testcase_13 AC 81 ms
15,112 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 83 ms
15,204 KB
testcase_17 AC 81 ms
15,220 KB
testcase_18 WA -
testcase_19 AC 82 ms
14,992 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 81 ms
15,028 KB
testcase_23 AC 80 ms
15,204 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a, b, c, d, e = gets.split.map(&:to_i)
b -= c

res = 0

(a * b).times do |i|
  res += d
  if (i + 1) % 10 == 0
    d = e > d ? d : d - e
  end
end

puts res
0