結果
| 問題 | No.1528 Not 1 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-06 15:33:42 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 400 bytes |
| 記録 | |
| コンパイル時間 | 803 ms |
| コンパイル使用メモリ | 182,952 KB |
| 実行使用メモリ | 9,908 KB |
| 最終ジャッジ日時 | 2026-09-28 08:33:50 |
| 合計ジャッジ時間 | 3,728 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
}