結果

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

ソースコード

diff #

#ifdef LOCAL
#define _GLIBCXX_DEBUG
#endif
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace atcoder;
using namespace std;
using ll = long long;
#define rep(i, n) for (ll i = 0; i < (ll)n; i++)
#define all(v) v.begin(),v.end()
const ll INF = (ll)2e18;

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);

    ll N;
    cin >> N;
    ll num = 1;
    vector<ll> primes = {2, 3, 5, 7, 11, 13, 17, 19, 23};
    rep(i,N){
        num *= primes[i];
    }
    vector<ll> ans;
    ans.push_back(num);
    rep(i,N-1){
        ans.push_back(num / primes[i]);
    }
    for(auto x:ans){
        cout << x << ' ';
    }
    cout << endl;
}
0