結果
問題 | No.1256 連続整数列 |
ユーザー |
![]() |
提出日時 | 2020-10-16 22:01:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 367 bytes |
コンパイル時間 | 523 ms |
コンパイル使用メモリ | 64,044 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-21 01:25:08 |
合計ジャッジ時間 | 1,506 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 WA * 3 |
ソースコード
#include <iostream> using namespace std; int main() { int a; cin >> a; int b = 2; if(a > 0) { while (b < a) { b *= 2; } } else { b *= -1; while (b > a) { b *= 2; } } if(b == a) { cout << "NO" << endl; return 0; } cout << "YES" << endl; return 0; }