結果

問題 No.21 平均の差
ユーザー mkawa2mkawa2
提出日時 2019-12-15 14:21:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 497 bytes
コンパイル時間 117 ms
コンパイル使用メモリ 10,924 KB
実行使用メモリ 8,900 KB
最終ジャッジ日時 2023-09-15 15:33:17
合計ジャッジ時間 908 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,716 KB
testcase_01 AC 18 ms
8,888 KB
testcase_02 AC 19 ms
8,852 KB
testcase_03 AC 17 ms
8,868 KB
testcase_04 AC 18 ms
8,860 KB
testcase_05 AC 18 ms
8,900 KB
testcase_06 AC 18 ms
8,816 KB
testcase_07 AC 18 ms
8,740 KB
testcase_08 AC 18 ms
8,732 KB
testcase_09 AC 18 ms
8,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import datetime

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def MI(): return map(int, sys.stdin.readline().split())
def MI1(): return map(int1, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]

def main():
    n=int(input())
    k=int(input())
    aa=[int(input()) for _ in range(n)]
    print(max(aa)-min(aa))
        
main()
0