結果

問題 No.21 平均の差
ユーザー 👑 colognecologne
提出日時 2022-01-22 13:31:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 5,000 ms
コード長 201 bytes
コンパイル時間 1,229 ms
コンパイル使用メモリ 87,036 KB
実行使用メモリ 71,580 KB
最終ジャッジ日時 2023-08-18 06:30:00
合計ジャッジ時間 2,769 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,252 KB
testcase_01 AC 72 ms
71,424 KB
testcase_02 AC 72 ms
71,420 KB
testcase_03 AC 68 ms
71,444 KB
testcase_04 AC 69 ms
71,392 KB
testcase_05 AC 70 ms
71,096 KB
testcase_06 AC 68 ms
71,580 KB
testcase_07 AC 71 ms
71,068 KB
testcase_08 AC 71 ms
71,412 KB
testcase_09 AC 69 ms
71,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

input = sys.stdin.readline


def main():
    N = int(input())
    K = int(input())
    X = [int(input()) for i in range(N)]
    print(max(X)-min(X))


if __name__ == '__main__':
    main()
0