From eb5fe51644edcd6a7dc6c4fcc87b848ac6798a10 Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Sat, 8 Jul 2023 02:07:54 +0600 Subject: [PATCH] initial commit --- 1624B.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 1624B.cpp diff --git a/1624B.cpp b/1624B.cpp new file mode 100644 index 0000000..787208e --- /dev/null +++ b/1624B.cpp @@ -0,0 +1,26 @@ +#include +using namespace std; +using ll = long long; + + +void solve() +{ + int n,x; + cin>>n>>x; + n=n-2; + int f; + if(n%x==0) f=n/x+1; + else f=n/x+2; + cout<> TC; + cin.ignore(); + while (TC--) solve(); +} \ No newline at end of file