結果
| 問題 | No.3159 Just Answer 10 Integers! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-24 17:20:34 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 885µs | |
| コード長 | 287 bytes |
| 記録 | |
| コンパイル時間 | 2,008 ms |
| コンパイル使用メモリ | 331,832 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-11 01:48:05 |
| 合計ジャッジ時間 | 2,933 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 9 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
ll N;
cin>>N;
vector<ll> P={1,2,3,5,7,11,13,17,19,23};
ll an=1;
for(auto p:P)an*=p;
for(int i=0;i<N;i++){
cout<<an/P[i]<<" \n"[i==N-1];
}
}