結果

問題 No.3159 Just Answer 10 Integers!
ユーザー Ponzu
提出日時 2025-05-29 20:54:46
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 280 bytes
コンパイル時間 1,398 ms
コンパイル使用メモリ 85,020 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-05-29 20:54:49
合計ジャッジ時間 3,004 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other AC * 1 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
using namespace std;

int main(){
	int N;cin>>N;
	vector<int> p = {2,3,5,7,11,13,17,19,23,29,31,37};
	int m = p.size();
	int res = 1;
	for(int i=0;i<N;++i){
		res *= p[i];
	}
	for(int i=0;i<N;++i){
		cout << p[i]*res << ' ';
	}
	cout << endl;
}
0