From 25b31530352b34a458e7a361c2590d2a7e78502d Mon Sep 17 00:00:00 2001 From: Jihoon Lee Date: Mon, 19 Feb 2024 04:29:54 +0900 Subject: [PATCH] Add 17283.cpp --- 17xxx/17283.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 17xxx/17283.cpp diff --git a/17xxx/17283.cpp b/17xxx/17283.cpp new file mode 100644 index 00000000..25f6329a --- /dev/null +++ b/17xxx/17283.cpp @@ -0,0 +1,22 @@ +#include +using namespace std; + +void solve(void) { + int l; cin >> l; + int r; cin >> r; + + int ans = 0, exp = 1; + while (l * r / 100 > 5) { + l = l * r / 100; + ans += l * (1 << exp++); + } + cout << ans; +} + +int main(void) { + ios::sync_with_stdio(false); + cin.tie(nullptr); + + solve(); + return 0; +} \ No newline at end of file