結果

問題 No.3287 Golden Ring
コンテスト
ユーザー vjudge1
提出日時 2025-11-05 23:49:18
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 458 bytes
コンパイル時間 3,132 ms
コンパイル使用メモリ 137,728 KB
実行使用メモリ 7,724 KB
最終ジャッジ日時 2025-11-05 23:49:23
合計ジャッジ時間 3,604 ms
ジャッジサーバーID
(参考情報)
judge5 / judge7
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 7 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<cstdio>
#include<iostream>
#include<string>
#include<vector>
#include<cstring>
#include<cmath>
#include<string.h>
using namespace std;
int n;
int main()
{
  //freopen("GR.in","r",stdin);
  //freopen("GR.out","w",stdout);
  cin>>n;
  if(n==2)
  {
    cout<<"No"<<endl;
	return 0;
  }
  cout<<"Yes"<<endl;
  for(int i=1;i<=n;i++)
  {
    if(i%2==1)
	  cout<<i<<" ";
  }
  for(int i=1;i<=n;i++)
  {
    if(i%2==0)
	  cout<<i<<" ";
  }
  
  return 0;
}
0