From d8b6eeb3fc553bcd6a41e7b7acc2254a701bef38 Mon Sep 17 00:00:00 2001 From: hanyixuanten <105723997+hanyixuanten@users.noreply.github.com> Date: Sat, 11 Jul 2026 22:59:36 +0800 Subject: [PATCH] new file: P17088.cpp --- P17088.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 P17088.cpp diff --git a/P17088.cpp b/P17088.cpp new file mode 100644 index 0000000..2e12438 --- /dev/null +++ b/P17088.cpp @@ -0,0 +1,25 @@ +#include +#define int long long +using namespace std; +int n; +signed main() +{ + scanf("%lld", &n); + int ans = 0; + for (int i = 0; i < n / 2; ++i) + { + ans <<= 1; + ans += 1; + } + for (int i = 0; i < n / 2; ++i) + { + ans <<= 1; + } + printf("%lld\n", ans); + return 0; +} +/* +5 +00000 +末尾0的个数等于1的个数 +*/ \ No newline at end of file