Codeforces Round #425 (Div. 2)A. Sasha and Sticks

来源:互联网 发布:视频马赛克复原软件 编辑:程序博客网 时间:2024/05/22 08:01

判断n/k奇偶性。

#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>using namespace std;int read(){    char ch=getchar();int f=0;    while(ch<'0'||ch>'9') ch=getchar();    while(ch>='0'&&ch<='9')    {f=(f<<1)+(f<<3)+ch-'0';    ch=getchar();}    return f;}int main(){    long long n,k;    cin>>n>>k;    long long x=n/k;    if(x%2==0)    printf("NO");    else printf("YES");}
阅读全文
0 0