結果

問題 No.1934 Four Fruits
ユーザー GrayCoder
提出日時 2022-05-13 21:43:46
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 33 ms / 2,000 ms
コード長 278 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-22 01:19:36
合計ジャッジ時間 969 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin


def main():
    input = lambda: stdin.readline()[:-1]
    A, B, C = map(int, input().split())

    x = {0, 1, 2, 3} ^ {A, B, C}
    n = len(x)
    if n == 1:
        print(*x)
    elif n == 2:
        print(A ^ B ^ C)
    else:
        print(A)


main()
0