結果
問題 | No.1934 Four Fruits |
ユーザー |
|
提出日時 | 2022-06-12 21:54:42 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 43 ms / 2,000 ms |
コード長 | 362 bytes |
コンパイル時間 | 174 ms |
コンパイル使用メモリ | 82,544 KB |
実行使用メモリ | 55,008 KB |
最終ジャッジ日時 | 2024-09-24 07:34:41 |
合計ジャッジ時間 | 1,129 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
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])