結果

問題 No.1934 Four Fruits
ユーザー misonikomipanmisonikomipan
提出日時 2022-05-13 21:24:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 878 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 10,796 KB
実行使用メモリ 8,804 KB
最終ジャッジ日時 2023-09-29 06:23:26
合計ジャッジ時間 1,006 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import math
import heapq
from collections import deque, Counter, defaultdict
from sys import stdin

from regex import E


INF = 10 ** 7
int1 = lambda x: int(x) - 1
stinput = lambda: stdin.readline()[:-1]
ii = lambda: int(stinput())  # int input
mi = lambda: map(int, stdin.readline().split())  # map input (int)
li = lambda: list(mi())  # list input (int)
mi1 = lambda: map(int1, stdin.readline().split())  # map input (int)-1
li1 = lambda: list(mi1())  # list input (int)-1
mis = lambda: map(str, stdin.readline().split())  # map input (string)
lis = lambda: list(mis())  # list input (string)


buy = li()
ans = set(range(4))
dd = defaultdict(int)
for b in buy: dd[b] += 1
if len(dd) == 1:
    for d in dd: print(d)
elif len(dd) == 2:
    for d in dd:
        if dd[d] == 1: print(d)
else:
    for i in range(4):
        if i in dd: continue
        else: print(i)
0