結果
| 問題 |
No.3287 Golden Ring
|
| コンテスト | |
| ユーザー |
yu23578
|
| 提出日時 | 2025-10-03 22:02:39 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 348 bytes |
| コンパイル時間 | 1,540 ms |
| コンパイル使用メモリ | 193,216 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-10-03 22:02:42 |
| 合計ジャッジ時間 | 2,508 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 14 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
int N;
signed main(){
cin>>N;
if(N == 2){
cout << "No" << "\n";
return 0;
}
cout << "Yes" << "\n";
if(N%2 == 0){
cout << 2 << " " << 1 << " ";
for(int i = 3; i <= N; i++) cout << i << " ";
}
else{
for(int i = 1; i <= N; i++) cout << i << " ";
}
}
yu23578