結果
問題 |
No.3159 Just Answer 10 Integers!
|
ユーザー |
![]() |
提出日時 | 2025-05-23 20:42:43 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,562 bytes |
コンパイル時間 | 2,795 ms |
コンパイル使用メモリ | 275,768 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-05-23 20:42:58 |
合計ジャッジ時間 | 3,382 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 9 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define ll long long const long long mod=998244353; const long long hmod=46216567629137; int main(){ cin.tie(0)->sync_with_stdio(0); cout.tie(0); ll N; cin>>N; if(N==2){ cout<<"2 3\n"; return 0; } if(N==3){ cout<<"2 6 3\n"; return 0; } if(N==4){ cout<<"60 15 12 20\n"; return 0; } if(N==5){ ll all=2*3*5*7*11; ll dat[5]={2,3,5,7,11}; rep(i,5) cout<<all/dat[i]<<" "; cout<<"\n"; return 0; } if(N==6){ ll all=2*3*5*7*11*13; ll dat[6]={2,3,5,7,11,13}; rep(i,6) cout<<all/dat[i]<<" "; cout<<"\n"; return 0; } if(N==7){ ll all=2*3*5*7*11*13*17; ll dat[7]={2,3,5,7,11,13,17}; rep(i,7) cout<<all/dat[i]<<" "; cout<<"\n"; return 0; } if(N==8){ ll all=2LL*3LL*5LL*7LL*11LL*13LL*17LL*19LL; ll dat[8]={2,3,5,7,11,13,17,19}; rep(i,8) cout<<all/dat[i]<<" "; cout<<"\n"; return 0; } if(N==9){ ll all=2LL*3LL*5LL*7LL*11LL*13LL*17LL*19LL; ll dat[8]={2,3,5,7,11,13,17,19}; rep(i,8) cout<<all/dat[i]<<" "; cout<<all<<"\n"; return 0; } if(N==10){ ll all=2LL*3LL*5LL*7LL*11LL*13LL*17LL*19LL*23LL; ll dat[9]={2,3,5,7,11,13,17,19,23}; rep(i,9) cout<<all/dat[i]<<" "; cout<<all; cout<<"\n"; return 0; } }