Help me in solving PARLIAMENT problem

My issue

int main(void) {
// your code goes here
int i,t ;
scanf (“%d”,&t);
for(i=0; i<t; i++)
{int x,n;
scanf (“%d %d”,&n,&x);
if (x/n >= n)
{printf(“yes\n”);}
else
{printf(“no\n”);}}
}

My code

#include <stdio.h>

int main(void) {
	// your code goes here
	int i,t ;
	scanf ("%d",&t);
	for(i=0; i<t; i++)
	{int x,n;
	scanf ("%d %d",&n,&x);
	if (x/n >= n)
	{printf("yes\n");}
	else 
	{printf("no\n");}}
}


Problem Link: Parliament Practice Coding Problem - CodeChef

@keerthana3105
u have done logical mistake .
I have corrected it in your code , hope u will get it.

#include <stdio.h>

int main(void) {
	// your code goes here
	int i,t ;
	scanf ("%d",&t);
	for(i=0; i<t; i++)
	{int x,n;
	scanf ("%d %d",&n,&x);
	if ((n+1)/2 <=x)
	{printf("yes\n");}
	else 
	{printf("no\n");}}
}

Check this out @keerthana3105
My Solution

# cook your dish here
for i in range(int(input())):
    n,x=list(map(int,input().split()))
    if 2*x>=n:
        print('yes')
    else:
        print('no')