OJ-Problems-Source/HDOJ/4861_autoAC.cpp
2016-09-10 11:32:44 +08:00

17 lines
267 B
C++

#include <stdio.h>
#include <string.h>
#include <algorithm>
using namespace std;
int main()
{
int k,p;
while(scanf("%d%d",&k,&p)!=EOF)
{
if((k/(p-1))%2==1)
printf("YES\n");
else
printf("NO\n");
}
return 0;
}