結果
問題 |
No.1528 Not 1
|
ユーザー |
|
提出日時 | 2022-10-13 16:53:07 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 9 ms / 2,000 ms |
コード長 | 401 bytes |
コンパイル時間 | 1,978 ms |
コンパイル使用メモリ | 193,284 KB |
最終ジャッジ日時 | 2025-02-08 02:44:12 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 19 |
ソースコード
#include<bits/stdc++.h> using namespace std; const int mod=1e9+7; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int N; cin>>N; if(N<6){ if(N<3){ cout<<"1\n"; }else if(N==4){ cout<<"2 4\n"; }else{ cout<<"-1\n"; } return 0; } cout<<"3 6 2"; for(int i=0,t=4;i<(N+1)/2-3;i+=1,t+=2){ if(t==6)t+=2; cout<<' '<<t; } cout<<'\n'; }