結果
| 問題 |
No.477 MVP
|
| ユーザー |
d_sei
|
| 提出日時 | 2019-10-14 21:07:09 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 307 bytes |
| コンパイル時間 | 817 ms |
| コンパイル使用メモリ | 80,588 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-24 13:31:54 |
| 合計ジャッジ時間 | 1,515 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 3 |
ソースコード
#include<iostream>
#include<algorithm>
#include <vector>
#include<cmath>
#include<iomanip>
#include<queue>
using namespace std;
typedef long long int lint;
int main() {
lint N, K;
cin >> N >> K;
if (!N % (K+1)) {
cout << N / (K + 1)+1 << endl;
}
else {
cout << (N + K) / (K + 1) << endl;
}
}
d_sei