結果

問題 No.21 平均の差
ユーザー AtamaokaCAtamaokaC
提出日時 2021-06-19 16:26:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 143 bytes
コンパイル時間 519 ms
コンパイル使用メモリ 87,060 KB
実行使用メモリ 71,556 KB
最終ジャッジ日時 2023-09-05 00:58:57
合計ジャッジ時間 1,902 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,520 KB
testcase_01 AC 65 ms
71,124 KB
testcase_02 AC 66 ms
71,552 KB
testcase_03 AC 71 ms
71,528 KB
testcase_04 AC 66 ms
71,556 KB
testcase_05 AC 67 ms
71,512 KB
testcase_06 AC 67 ms
71,128 KB
testcase_07 AC 67 ms
71,128 KB
testcase_08 AC 67 ms
71,492 KB
testcase_09 AC 67 ms
71,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

inpl = lambda: list(map(int,input().split()))
N = int(input())
K = int(input())
n = sorted([int(input()) for _ in range(N)])
print(n[-1]-n[0])
0