From 7ac23478f4fb99fbd374dca101a28bf1041406b9 Mon Sep 17 00:00:00 2001 From: Hiyabye Date: Sun, 14 Jan 2024 02:01:37 +0900 Subject: [PATCH] Add 19946.cpp --- 19xxx/19946.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 19xxx/19946.cpp diff --git a/19xxx/19946.cpp b/19xxx/19946.cpp new file mode 100644 index 00000000..757c6146 --- /dev/null +++ b/19xxx/19946.cpp @@ -0,0 +1,21 @@ +#include +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; +} \ No newline at end of file