結果
| 問題 | No.388 階段 (1) | 
| コンテスト | |
| ユーザー |  mmn15277198 | 
| 提出日時 | 2020-06-07 17:07:39 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 418 bytes | 
| コンパイル時間 | 656 ms | 
| コンパイル使用メモリ | 89,524 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-12-23 17:53:40 | 
| 合計ジャッジ時間 | 1,267 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 12 | 
ソースコード
#include<iostream>
#include<math.h>
#include<string.h>
#include<vector>
#include<algorithm>
#include<iomanip>
#include<deque>
#include<map>
#include<stdio.h>
using namespace std;
int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	
	int a,b;
	cin >> a >> b;
	int cnt=1;
	while(1){
		a-=b;
		if(a>0){
			cnt++;
		}
		if(a==0){
			cnt++;
			break;
		}
		if(a<0){
			break;
		}
	}
	cout << cnt << endl;
	return 0;
}
            
            
            
        