小球重量:三个球A、B、C,大小形状相同且其中一个球与其它球重量不同,要求找出这个不一样的球。

#include <stdio.h>

void main() {
    int a, b, c;
    scanf("%d%d%d", &a, &b, &c);
    if (a == b)
        printf("C\n");
    else if (a == c)
        printf("B\n");
    else
        printf("A\n");
}
发布了139 篇原创文章 · 获赞 3 · 访问量 92万+

猜你喜欢

转载自blog.csdn.net/qq_38490457/article/details/104829366
今日推荐