結果

問題 No.3159 Just Answer 10 Integers!
ユーザー TKTYI
提出日時 2025-05-06 19:36:39
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 284 bytes
コンパイル時間 3,106 ms
コンパイル使用メモリ 274,368 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-05-23 18:30:40
合計ジャッジ時間 3,121 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
    int N;
    cin >> N;
    vector<int> P = {2, 3, 5, 7, 11, 13, 17, 19, 23};
    int prod = 1;
    for(int p:P) prod *= p;
    for(int i = 0; i < N; i++) cout << (i ? prod / P[i-1]: prod) << " \n"[i == N-1];
    return 0;
}
0