大师傅

Nicole  •  1个月前


#include <stdio.h>

int main() {
int 	a, b, c, d, e, f1, f2, f3;
scanf("%d", &a);
b = a % 10; //个位
f1 = a / 10;
c = f1 % 10; //十位
f2 = f1 / 10;
d = f2 % 10; //百位
f3 = f2 / 10;
e = f3 % 10; //千位

if (b + d == c + e) {
	printf("YES");
} else {
	printf("NO");
}
return 0;
}

评论:

请先登录,才能进行评论