結果

問題 No.1934 Four Fruits
ユーザー titan23titan23
提出日時 2022-06-12 21:54:42
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 362 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 81,656 KB
実行使用メモリ 53,416 KB
最終ジャッジ日時 2023-10-24 16:23:55
合計ジャッジ時間 1,253 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,416 KB
testcase_01 AC 37 ms
53,416 KB
testcase_02 AC 37 ms
53,416 KB
testcase_03 AC 36 ms
53,416 KB
testcase_04 AC 37 ms
53,416 KB
testcase_05 AC 38 ms
53,416 KB
testcase_06 AC 38 ms
53,416 KB
testcase_07 AC 38 ms
53,416 KB
testcase_08 AC 39 ms
53,416 KB
testcase_09 AC 41 ms
53,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()
from collections import Counter

##################

A = list(map(int, input().split()))
c = Counter(A)
if len(c) == 1:
  print(A[0])
elif len(c) == 2:
  if c[0] == 1:
    print(0)
  elif c[1] == 1:
    print(1)
  elif c[2] == 1:
    print(2)
  else:
    print(3)
else:
  print(list({0,1,2,3}-set(A))[0])
0