結果
| 問題 |
No.1934 Four Fruits
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-15 18:21:32 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 308 bytes |
| コンパイル時間 | 113 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-09-13 03:39:53 |
| 合計ジャッジ時間 | 973 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
from collections import Counter
L = list(map(int, input().split()))
L_s = set(L[0:3])
ans = {0, 1, 2, 3}
if(len(L_s) == 3):
output = list(ans - L_s)[0]
elif(len(L_s) == 2):
C = Counter(L)
for k, v in C.items():
if(v == 1):
output = k
else:
output = L[0]
print(output)