Help me in solving SLOWSTART problem

My issue

t=int(input())
for i in range(t):
x,h=map(int,input().split())
c=0
for j in range(5):
h=h-x/2
c=+1
if h<0:
print(int(c))
break
if h>0:
c=5+h//x
if h/x>h//x:
c+=1
print(int(c))

My code

# cook your dish here
t=int(input())
for i in range(t):
    x,h=map(int,input().split())
    c=0
    for j in range(5):
        h=h-x/2
        c=+1
        if h<0:
            print(int(c))
            break
    if h>0:        
        c=5+h//x
        if h/x>h//x:
            c+=1
        print(int(c))
            
    

Problem Link: Slow Start Practice Coding Problem - CodeChef

@khushisahu0108
hey,plzz refer my c++ 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;
}