My issue
help me with this
My code
# cook your dish here
Problem Link: SLOWSTART Problem - CodeChef
@akshayasri0805
plzz refer the following code for better understanding of the logic.
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int t;
cin>>t;
while(t--)
{
int x,h;
cin>>x>>h;
x=x/2;
int d=x*5;
if(d>=h)
cout<<ceil(h*1.0/x*1.0);
else
{
h=h-d;
x=x*2;
cout<<5+ ceil(h*1.0/x*1.0);
}
cout<<endl;
}
return 0;
}