嗷呜—————— 耦园采雪 · 发布于 2022-09-10 · 浏览 690 回复 0 include <stdio.h> include <string.h> int main() { char a[10005] ; gets(a); int b = strlen(a); int c = a[b - 1] - '0'; if (c % 2 == 0) { printf("YES"); } if (c % 2 != 0) { printf("NO"); } return 0; }