diff --git a/ChocolateFeast.cpp b/ChocolateFeast.cpp new file mode 100644 index 0000000..4dad82d --- /dev/null +++ b/ChocolateFeast.cpp @@ -0,0 +1,20 @@ +#include + +using namespace std; + +int main(){ + + int a,b,c,d,ans = 0; + cin >> a; + while(a--){ + cin >> b >> c >> d; + int tmp = ans = b/c; + while(tmp >= d){ + ans++; + tmp-=d; + tmp++; + } + cout << ans << endl; + } + return 0; +}