結果
| 問題 | 
                            No.477 MVP
                             | 
                    
| コンテスト | |
| ユーザー | 
                             AQUA16573837
                         | 
                    
| 提出日時 | 2018-04-06 03:12:10 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 327 bytes | 
| コンパイル時間 | 477 ms | 
| コンパイル使用メモリ | 59,508 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-26 10:43:26 | 
| 合計ジャッジ時間 | 1,085 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 12 | 
コンパイルメッセージ
main.cpp: In function ‘void solve()’:
main.cpp:21:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   21 |         scanf("%lld %lld", &n, &k);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
#include <algorithm>
#include <vector>
#include <deque>
#include <string>
#include <iostream>
using namespace std;
using ll = long long;
void solve();
int main() {
	solve();
#ifdef DBG
	while (true);
#endif
}
//477
void solve() {
	ll n, k;
	scanf("%lld %lld", &n, &k);
	printf("%lld\n", n / (k + 1) + 1);
}
            
            
            
        
            
AQUA16573837