#include<stdio.h>
int main()
{
unsigned int x,flag;
while(1)
{
printf("请输入一个正整数:\n");
scanf("%u",&x);
do
{
flag = x%2;
x = x/10;
}
while(x!=0&&((!flag)==x%2));
if(x==0)
printf("YES\n");
else
printf("NOT\n");
}
return 0;
int main()
{
unsigned int x,flag;
while(1)
{
printf("请输入一个正整数:\n");
scanf("%u",&x);
do
{
flag = x%2;
x = x/10;
}
while(x!=0&&((!flag)==x%2));
if(x==0)
printf("YES\n");
else
printf("NOT\n");
}
return 0;
}