結果
問題 |
No.3159 Just Answer 10 Integers!
|
ユーザー |
|
提出日時 | 2025-05-23 21:13:51 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 331 bytes |
コンパイル時間 | 2,087 ms |
コンパイル使用メモリ | 195,432 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-05-23 21:13:54 |
合計ジャッジ時間 | 2,519 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 9 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int N; cin >> N; vector<long long> P = {2,3,5,7,11,13,17,19,23}; long long s = 1; for(auto p : P) s *= p; cout << s; for(int i=0; i<N-1; i++) cout << " " << s/P.at(i); cout << endl; }