結果

問題 No.1934 Four Fruits
ユーザー superzugan
提出日時 2022-06-05 23:40:18
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 33 ms / 2,000 ms
コード長 220 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-21 04:21:20
合計ジャッジ時間 1,033 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c=map(int,input().split())
s=[a,b,c]
t={a,b,c}
ans=0
if a==b==c:ans=a
elif len(t)==3:ans=6-(a+b+c)
else:
    #print(ans)
    if s.count(a)==1:ans=a
    elif s.count(b)==1:ans=b
    elif s.count(c)==1:ans=c
print(ans)
0