結果

問題 No.1528 Not 1
ユーザー SK96376164
提出日時 2021-06-04 21:53:56
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 1,689 ms
コンパイル使用メモリ 165,580 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-19 14:00:33
合計ジャッジ時間 4,559 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 9 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
    int n;cin>>n;
    if(n==1)cout<<1;
    else if(n==2||n==3||n==5)cout<<-1;
    else{
        for(int i=2;i<=n;i+=2)if(i!=6)cout<<i<<' ';
        if(n%2)cout<<"6 3";
    }
}
0