結果
| 問題 |
No.1528 Not 1
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-06 15:33:42 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 400 bytes |
| コンパイル時間 | 1,530 ms |
| コンパイル使用メモリ | 165,448 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-22 21:37:45 |
| 合計ジャッジ時間 | 4,841 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 WA * 9 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int N;
cin >> N;
if(N == 1) cout << 1 << endl;
else if(N == 2) cout << 1 << endl;
else if(N == 3) cout << -1 << endl;
else if(N == 4) cout << "2 4" << endl;
else if(N == 5) cout << -1 << endl;
else{
cout << "3 6";
for(int i=2;i<=N;i+=2){
if(i == 6) continue;
cout << " " << i;
}
cout << endl;
}
}