結果

問題 No.1256 連続整数列
ユーザー chacoder1chacoder1
提出日時 2021-01-09 10:41:05
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 370 bytes
コンパイル時間 1,825 ms
コンパイル使用メモリ 190,804 KB
最終ジャッジ日時 2025-01-17 15:15:16
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
  int N;
  cin>>N;
  /*for(int i=3;i<=(max(3,N/2));i+=2){
    if(N%i ==0){
      cout<<"YES"<<endl;
      return 0;
    }
  }
  if(N%2 == 0 && (N/2)%2 != 0){
    cout<<"YES"<<endl;
    return 0;
  }
  cout<<"NO"<<endl;
  return 0;
  */
  if(N==1){
    cout<<"NO"<<endl;
    return 0;
  }
  cout<<"YES"<<endl;
}
0