l,r,x,y,k=map(int,raw_input().split())

for i in range(x,y+1):

if i*k>=l and i*k<=r:

i=0

break

if i==0:

print “YES”

else:

print “NO”

my python code gives tle , while the solution of others gave correct when wrote in c++ or java , y so ?

uwi’s code is below

```
void solve()
{
long l = nl(), r = nl();
long x = nl(), y = nl();
long K = nl();
for(long i = x;i <= y;i++){
if(l <= K*i && K*i <= r){
out.println("YES");
return;
}
}
out.println("NO");
it has the same logic
```

if anyone can hint me where i am wrong?