Skip to content

Commit

Permalink
Add 19946.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiyabye committed Jan 13, 2024
1 parent 70ce323 commit 7ac2347
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions 19xxx/19946.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#include <iostream>
using namespace std;

void solve(void) {
unsigned long long n; cin >> n;

int ans = 64;
while (!(n & 1)) {
n >>= 1;
ans--;
}
cout << ans;
}

int main(void) {
ios::sync_with_stdio(false);
cin.tie(nullptr); cout.tie(nullptr);

solve();
return 0;
}

0 comments on commit 7ac2347

Please sign in to comment.