結果
問題 | No.589 Counting Even |
ユーザー |
![]() |
提出日時 | 2018-04-17 19:54:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 183 bytes |
コンパイル時間 | 630 ms |
コンパイル使用メモリ | 63,656 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-27 04:15:35 |
合計ジャッジ時間 | 1,681 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include <iostream>using namespace std;long long n, x, b = 1;int main() {cin >> n; x = n;while (x) {if (x & 1) b *= 2;x >>= 1;}cout << n - b + 1 << endl;return 0;}