結果

問題 No.477 MVP
ユーザー Yut176
提出日時 2017-01-27 22:58:51
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 367 bytes
コンパイル時間 799 ms
コンパイル使用メモリ 81,108 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-23 16:44:18
合計ジャッジ時間 1,296 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<vector>
#include<map>
#include<queue>
#include<string>
#include<sstream>
#include<cmath>
#include<numeric>
using namespace std;

int main(){

  long long int n, k;
  cin >> n >> k;

  long long int ans = n / (k+1);

  cout << ( n % (k+1) == 0 ? ans+1 : ans+1) << endl;

  return 0;
}
0