結果

問題 No.1934 Four Fruits
ユーザー liny_tailliny_tail
提出日時 2022-12-30 18:03:45
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 289 bytes
コンパイル時間 403 ms
コンパイル使用メモリ 10,552 KB
実行使用メモリ 8,616 KB
最終ジャッジ日時 2023-08-16 23:55:28
合計ジャッジ時間 1,462 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,452 KB
testcase_01 AC 20 ms
8,528 KB
testcase_02 AC 20 ms
8,616 KB
testcase_03 WA -
testcase_04 AC 20 ms
8,452 KB
testcase_05 AC 20 ms
8,488 KB
testcase_06 AC 20 ms
8,452 KB
testcase_07 AC 20 ms
8,452 KB
testcase_08 AC 20 ms
8,488 KB
testcase_09 AC 20 ms
8,488 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 = list(c.keys())
  print(cc[1])
else:
  cc = list(c.keys())
  print(cc[0])
0