はまやんはまやんはまやん

hamayanhamayan's blog

One out of Three [AtCoder Beginner Contest 075 A]

https://beta.atcoder.jp/contests/abc075/tasks/abc075_a

解法

https://beta.atcoder.jp/contests/abc075/submissions/1681737
愚直に実装した。
mapとかで数えてもいいかもしれない。

int A, B, C;
//---------------------------------------------------------------------------------------------------
void _main() {
    cin >> A >> B >> C;
    if (A == B) printf("%d\n", C);
    else if (A == C) printf("%d\n", B);
    else printf("%d\n", A);
}