結果
問題 |
No.589 Counting Even
|
ユーザー |
|
提出日時 | 2017-11-08 17:43:45 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 189 bytes |
コンパイル時間 | 653 ms |
コンパイル使用メモリ | 63,104 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-24 06:00:53 |
合計ジャッジ時間 | 1,241 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 28 |
ソースコード
#include <iostream> using namespace std; using ll = long long; int main() { ll N; cin >> N; int cnt=0; while(N>0){ if(N%2 == 1){ cnt++; } N/=2; } cout << N-(1LL<<cnt)+1 << endl; return 0; }