結果
問題 |
No.1256 連続整数列
|
ユーザー |
![]() |
提出日時 | 2021-01-09 10:19:14 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 323 bytes |
コンパイル時間 | 1,762 ms |
コンパイル使用メモリ | 191,184 KB |
最終ジャッジ日時 | 2025-01-17 15:13:00 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 WA * 4 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int N; cin>>N; for(int i=3;i<=(N/2);i++){ if(N%i ==0){ if(i%2 != 0){ cout<<"YES"<<endl; return 0; } else if((N/i)%2 != 0){ cout<<"YES"<<endl; return 0; } } } cout<<"NO"<<endl; return 0; }