結果
問題 |
No.3159 Just Answer 10 Integers!
|
ユーザー |
![]() |
提出日時 | 2025-05-23 20:42:33 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 653 bytes |
コンパイル時間 | 4,041 ms |
コンパイル使用メモリ | 253,028 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-05-23 20:42:37 |
合計ジャッジ時間 | 4,267 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 9 |
ソースコード
#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-1){ 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; }