結果

問題 No.477 MVP
ユーザー zaichu
提出日時 2017-01-28 03:21:08
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 261 bytes
コンパイル時間 665 ms
コンパイル使用メモリ 67,840 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-23 20:09:33
合計ジャッジ時間 1,479 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

void solve() {
  long long n,k;
  cin >> n >> k;
  cout << n / (k+1) + 1 << endl;
}

int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);

  solve();

  return 0;
}
0