結果

問題 No.2610 Decreasing LCMs
ユーザー Carpenters-Cat
提出日時 2024-01-20 00:18:05
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 248 bytes
コンパイル時間 2,012 ms
コンパイル使用メモリ 191,188 KB
最終ジャッジ日時 2025-02-18 21:40:17
ジャッジサーバーID
(参考情報)
judge2 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main () {
	int N;
	cin >> N;
	using ll = long long;
	ll b = 1e7 + 1;
	cout << b << " ";
	for (ll n = 2; n <= N; n ++) {
		while (b % n) {
			b += (n - 1);
		}
		cout << b << " ";
	}
	cout << endl;
}
0