結果

問題 No.965 門松列が嫌い
ユーザー convexineqconvexineq
提出日時 2020-01-13 20:43:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 18 ms / 1,000 ms
コード長 376 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 10,528 KB
実行使用メモリ 8,892 KB
最終ジャッジ日時 2023-08-23 13:16:24
合計ジャッジ時間 966 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,676 KB
testcase_01 AC 18 ms
8,772 KB
testcase_02 AC 18 ms
8,680 KB
testcase_03 AC 17 ms
8,840 KB
testcase_04 AC 18 ms
8,800 KB
testcase_05 AC 18 ms
8,852 KB
testcase_06 AC 18 ms
8,796 KB
testcase_07 AC 18 ms
8,732 KB
testcase_08 AC 18 ms
8,652 KB
testcase_09 AC 18 ms
8,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Your code here!
import sys
sys.setrecursionlimit(10**6)
readline = sys.stdin.readline
read = sys.stdin.read

import datetime

#n = int(input())
#n,k = [int(i) for i in readline().split()]
#a = [int(i) for i in readline().split()]

abc = [int(i) for i in input().split()]
s = sorted(abc)

ans = min(s[1]-s[0],s[2]-s[1])

if abc[1] == s[1]: ans = 0

print(ans)
0