結果

問題 No.46 はじめのn歩
ユーザー Kou
提出日時 2021-12-04 14:28:58
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 208 bytes
コンパイル時間 648 ms
コンパイル使用メモリ 62,596 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-06 20:27:57
合計ジャッジ時間 1,122 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <string>
#include <iostream>

using namespace std;

int main() {

	int a, b;
	int ans = 0;

	cin >> a >> b;
	
	for (int i = 1; a <= b; i++)
	{
		a = a * i;
		ans = i;
	}

	cout << ans;
	
	return 0;
}
0