結果

問題 No.46 はじめのn歩
ユーザー tomatonogunkan
提出日時 2025-04-25 21:05:44
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 361 ms / 5,000 ms
コード長 195 bytes
コンパイル時間 1,997 ms
コンパイル使用メモリ 191,280 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-04-25 21:05:48
合計ジャッジ時間 3,205 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define rep(i,a,n) for(int i=(a);i<(n);i++)
int main(){
	int a,b,i=0,ans=0;
	cin >> a >> b;
	
	while(i<b){
		i+=a;
		ans++;
	}
	cout << ans << endl;
}
0