結果

問題 No.91 赤、緑、青の石
ユーザー Himatsubushin
提出日時 2022-02-03 14:49:17
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 314 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-06-11 09:56:19
合計ジャッジ時間 1,855 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 21 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

n = [0, 0, 0]
n[0], n[1], n[2] = map(int, input().split())
if min(n) == 0 and max(n) < 3:
    print(0)
else:
    for i in range(2):
        for j in range(1, 3):
            if n[i] > n[j]:
                n[i], n[j] = n[j], n[i]
    a = n[1] - n[0]
    b = n[2] - n[0]
    x = int((a + b) / 4) + n[0]
    print(x)
0