結果
| 問題 | No.1934 Four Fruits |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-14 20:57:18 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 118 ms / 2,000 ms |
| コード長 | 371 bytes |
| 記録 | |
| コンパイル時間 | 409 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 15,448 KB |
| 最終ジャッジ日時 | 2026-04-03 13:20:34 |
| 合計ジャッジ時間 | 2,247 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
from itertools import *
from functools import *
from collections import *
from math import *
from heapq import *
import sys
input = sys.stdin.readline
A = list(map(int,input().split()))
if len(set(A)) == 1:
print(A[0])
elif len(set(A)) == 2:
c = Counter(A)
for k,v in c.items():
if v == 1:
print(k)
else:
print(6-sum(A))