#include <stdio.h>
int main(){
int test,a,b,p,q;
scanf("%d",&test);
for(int i=0;i<test;i++){
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&p);
scanf("%d",&q);
if(a==p && b==q){
printf("YES\n");
continue;
}
if(p%a==0 && q%b==0){
if((p/a)-(q/b)==1 || (q/b)-(p/a)==1){
printf("YES\n");
continue;
}
printf("NO\n");
}else{
printf("NO\n");
}
}
return 0;
}
for this program
4
1 2 1 2
1 2 3 2
4 3 4 6
3 5 9 25
``` this is input
YES
NO
YES
NO
https://www.codechef.com/LTIME101C/problems/ALTER
which i have then what is the problem ?