結果

問題 No.46 はじめのn歩
ユーザー Hayato2475Hayato2475
提出日時 2023-11-18 01:31:56
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 377 ms / 5,000 ms
コード長 452 bytes
コンパイル時間 5,287 ms
コンパイル使用メモリ 306,596 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2023-11-18 01:32:03
合計ジャッジ時間 6,535 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 AC 1 ms
6,676 KB
testcase_02 AC 2 ms
6,676 KB
testcase_03 AC 2 ms
6,676 KB
testcase_04 AC 1 ms
6,676 KB
testcase_05 AC 2 ms
6,676 KB
testcase_06 AC 2 ms
6,676 KB
testcase_07 AC 2 ms
6,676 KB
testcase_08 AC 377 ms
6,676 KB
testcase_09 AC 2 ms
6,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <atcoder/all>
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
#define rep(i,a,n) for (int i = a; i < (n); i++)
template<typename T> inline bool chmax(T& a, T b) { return ((a < b) ? (a = b, true) : (false)); }
template<typename T> inline bool chmin(T& a, T b) { return ((a > b) ? (a = b, true) : (false)); }

int main(){
	int a,b,ans=0;
	cin >> a >> b;
    int i=0;
	while(i < b){
		i+=a;
		ans++;
	}
	cout << ans << endl;
}
0