結果

問題 No.1934 Four Fruits
ユーザー liny_tailliny_tail
提出日時 2022-12-30 18:09:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 20 ms / 2,000 ms
コード長 313 bytes
コンパイル時間 443 ms
コンパイル使用メモリ 10,752 KB
実行使用メモリ 8,644 KB
最終ジャッジ日時 2023-08-17 00:00:55
合計ジャッジ時間 1,294 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,560 KB
testcase_01 AC 20 ms
8,500 KB
testcase_02 AC 20 ms
8,476 KB
testcase_03 AC 20 ms
8,468 KB
testcase_04 AC 19 ms
8,444 KB
testcase_05 AC 20 ms
8,596 KB
testcase_06 AC 20 ms
8,644 KB
testcase_07 AC 20 ms
8,532 KB
testcase_08 AC 19 ms
8,608 KB
testcase_09 AC 20 ms
8,604 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

lst = [int(i) for i in input().strip().split(' ')]

c = Counter(lst)

if len(c) == 3:
  for i in range(4):
    if not(i in lst):
      print(i)
      exit(0)
elif len(c) == 2:
  cc = [i[0] for i in c.items() if i[1] == 1][0]
  print(cc)
else:
  cc = list(c.keys())
  print(cc[0])
0