結果
| 問題 |
No.1256 連続整数列
|
| コンテスト | |
| ユーザー |
ぷら
|
| 提出日時 | 2020-10-16 21:31:48 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 512 bytes |
| コンパイル時間 | 1,691 ms |
| コンパイル使用メモリ | 167,304 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-21 01:20:02 |
| 合計ジャッジ時間 | 2,586 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 WA * 3 |
ソースコード
#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;
if(A%2 == 1) {
cout << "YES" << endl;
}
else {
for(int i = 2; i*i <= A; i++) {
if(A%i == 0 && (i%2 == 1 || (A/i)%2 == 1)) {
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
}
}
ぷら