結果

問題 No.1934 Four Fruits
ユーザー qib
提出日時 2023-04-13 23:48:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 660 ms
コンパイル使用メモリ 82,600 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-10-09 19:22:27
合計ジャッジ時間 1,488 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

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

if a == b == c:
  print(a)
elif a != b and b != c:
  print(6 - a - b - c)
elif a == b:
  print(c)
else:
  print(a)
0