結果

問題 No.1934 Four Fruits
ユーザー sysnote8main
提出日時 2023-05-07 17:47:09
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 253 bytes
コンパイル時間 256 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-24 17:20:42
合計ジャッジ時間 1,093 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

g = list(sorted(list(map(int,input().split()))))
bools = [False for i in range(4)]
for i in g:
	bools[i] = True
lg = bools.count(True)
if lg==1:
	print(g[0])
elif lg==2:
	if g[0]==g[1]:
		print(g[2])
	else:
		print(g[0])
else:
	print(bools.index(False))
0