結果

問題 No.477 MVP
ユーザー wonda_t_coffeewonda_t_coffee
提出日時 2020-02-03 22:10:22
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 124 bytes
コンパイル時間 320 ms
コンパイル使用メモリ 11,884 KB
実行使用メモリ 16,216 KB
最終ジャッジ日時 2023-10-19 11:10:57
合計ジャッジ時間 2,705 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 87 ms
16,196 KB
testcase_03 AC 87 ms
16,196 KB
testcase_04 WA -
testcase_05 AC 90 ms
16,196 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require 'bigdecimal'

n, k = gets.chomp.split.map{|v| BigDecimal(v, 12)}
v = (n / (k + 1)).ceil
puts v == v.to_i ? v + 1 : v
0