結果

問題 No.1256 連続整数列
ユーザー ぷらぷら
提出日時 2020-10-16 21:21:22
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 382 bytes
コンパイル時間 1,532 ms
コンパイル使用メモリ 166,452 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-21 01:09:06
合計ジャッジ時間 2,012 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define int long long
typedef pair<int,int> P;
int INF = 3e18;
int mod = 1e9+7;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
signed main() {
    int A;
    cin >> A;
    for(int i = 3; i*i <= A; i+=2) {
        if(A%i == 0) {
            cout << "YES" << endl;
            return 0;
        }
    }
    cout << "NO" << endl;
}
0