結果

問題 No.1934 Four Fruits
ユーザー 310icecrystal
提出日時 2023-06-10 20:54:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 198 bytes
コンパイル時間 455 ms
コンパイル使用メモリ 82,688 KB
実行使用メモリ 51,968 KB
最終ジャッジ日時 2025-01-03 01:46:54
合計ジャッジ時間 1,706 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c = map(int,input().split())

S = set([a,b,c])
if len(S) == 1:
	print(a)
elif len(S) == 3:
	print(6-a-b-c)
else:
	li = [a,b,c]
	li.sort()
	if li[0] == li[1]:
		print(li[2])
	else:
		print(li[0])
0