結果
問題 |
No.3159 Just Answer 10 Integers!
|
ユーザー |
|
提出日時 | 2025-05-04 01:33:19 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 381 bytes |
コンパイル時間 | 3,468 ms |
コンパイル使用メモリ | 276,420 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-05-23 18:30:25 |
合計ジャッジ時間 | 4,556 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 9 |
ソースコード
// WA if n is large #include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); vector<long long> p={2,3,5,7,11,13,17,19,23,29}; long long v=1; for(auto &nx : p){v*=nx;} int n; cin >> n; while(p.size()>n){p.pop_back();} for(int i=0;i<n;i++){ if(i){cout << " ";} cout << v/p[i]; }cout << "\n"; return 0; }