結果

問題 No.477 MVP
ユーザー naotest2naotest2
提出日時 2017-09-08 17:00:27
言語 Ruby
(3.3.0)
結果
AC  
実行時間 90 ms / 1,000 ms
コード長 98 bytes
コンパイル時間 67 ms
コンパイル使用メモリ 11,324 KB
実行使用メモリ 15,348 KB
最終ジャッジ日時 2023-08-07 01:56:04
合計ジャッジ時間 1,952 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
15,300 KB
testcase_01 AC 79 ms
15,016 KB
testcase_02 AC 80 ms
15,148 KB
testcase_03 AC 79 ms
15,128 KB
testcase_04 AC 79 ms
15,256 KB
testcase_05 AC 84 ms
15,200 KB
testcase_06 AC 79 ms
15,348 KB
testcase_07 AC 79 ms
15,084 KB
testcase_08 AC 79 ms
15,092 KB
testcase_09 AC 81 ms
15,124 KB
testcase_10 AC 80 ms
15,012 KB
testcase_11 AC 79 ms
15,056 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

(N,K)=gets.chomp.split(' ').map(&:to_i)

def mvp(n, k)
  (n / (k+1)).floor + 1
end

puts mvp(N,K)
0