- P143's solution
[题解] P143. [CTFPC-2nd] Rice Dumplings 1
- 2025-9-5 20:22:56 @
简单题目,枚举所有情况即可。
// P137. [CTFPC-2nd] Rice Dumplings 1
// code by:cirrationaler
// time:2025/08/30
#include <bits/stdc++.h>
using namespace std;
long long a, b, c;
int main()
{
// freopen("code.in", "r", stdin);
scanf("%lld %lld %lld", &a, &b, &c);
if (a == b && b == c)
{
printf("");
}
else if (a > b && b > c)
{
// printf("%lld", a);
printf("A");
}
else if (a > c && c > b)
{
// printf("%lld", a);
printf("A");
}
else if (b > a && a > c)
{
// printf("%lld", b);
printf("B");
}
else if (b > c && c > a)
{
// printf("%lld", b);
printf("B");
}
else if (c > a && a > b)
{
// printf("%lld", c);
printf("C");
}
else if (c > b && b > a)
{
// printf("%lld", c);
printf("C");
}
return 0;
}