結果

問題 No.965 門松列が嫌い
ユーザー uni_pythonuni_python
提出日時 2020-10-01 22:58:53
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 77 ms / 1,000 ms
コード長 302 bytes
コンパイル時間 343 ms
コンパイル使用メモリ 87,120 KB
実行使用メモリ 71,552 KB
最終ジャッジ日時 2023-09-21 12:15:25
合計ジャッジ時間 2,125 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,392 KB
testcase_01 AC 77 ms
71,104 KB
testcase_02 AC 77 ms
71,416 KB
testcase_03 AC 77 ms
71,552 KB
testcase_04 AC 76 ms
71,436 KB
testcase_05 AC 76 ms
71,264 KB
testcase_06 AC 77 ms
71,296 KB
testcase_07 AC 77 ms
71,256 KB
testcase_08 AC 76 ms
71,324 KB
testcase_09 AC 76 ms
71,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    L=LI()
    L.sort()
    
    d1=L[1]-L[0]
    d2=L[2]-L[1]
    
    print(min(d1,d2))
        
        


main()
0