結果
問題 |
No.1256 連続整数列
|
ユーザー |
![]() |
提出日時 | 2020-10-16 21:53:45 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 367 bytes |
コンパイル時間 | 494 ms |
コンパイル使用メモリ | 62,592 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-21 01:22:40 |
合計ジャッジ時間 | 1,342 ms |
ジャッジサーバーID (参考情報) |
judge4 / 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; }