結果
問題 |
No.2241 Reach 1
|
ユーザー |
|
提出日時 | 2023-03-10 22:07:16 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 203 bytes |
コンパイル時間 | 1,996 ms |
コンパイル使用メモリ | 191,664 KB |
最終ジャッジ日時 | 2025-02-11 08:26:54 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 WA * 19 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i,n) for(int i=0;i<int(n);i++) int main(){ ll n; cin>>n; n--; n^=(n>>1); cout<<__builtin_popcountll(n)<<endl; }