| 10 | #include<iostream> |
| 11 | using namespace std; |
| 12 | int main() { |
| 13 | int t; |
| 14 | cin>>t; |
| 15 | while(t--){ |
| 16 | int n,x,y,k,infect=0; |
| 17 | cin>>n>>k>>x>>y; |
| 18 | int i = n; |
| 19 | while(i--){ |
| 20 | if(x == y){ |
| 21 | cout<<"YES"<<endl; |
| 22 | infect = 1; |
| 23 | break; |
| 24 | } |
| 25 | x = (x+k)%n; |
| 26 | } |
| 27 | if(!infect){ |
| 28 | cout<<"NO"<<endl; |
| 29 | } |
| 30 | } |
| 31 | return 0; |
| 32 | } |
nothing calls this directly
no outgoing calls
no test coverage detected