結果

問題 No.21 平均の差
ユーザー momoyuumomoyuu
提出日時 2022-03-22 03:31:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 5,000 ms
コード長 205 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 82,460 KB
実行使用メモリ 54,252 KB
最終ジャッジ日時 2024-04-18 00:35:19
合計ジャッジ時間 1,059 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,028 KB
testcase_01 AC 35 ms
52,820 KB
testcase_02 AC 36 ms
53,416 KB
testcase_03 AC 36 ms
52,068 KB
testcase_04 AC 36 ms
52,492 KB
testcase_05 AC 36 ms
51,944 KB
testcase_06 AC 36 ms
52,188 KB
testcase_07 AC 37 ms
52,872 KB
testcase_08 AC 36 ms
52,280 KB
testcase_09 AC 35 ms
54,252 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    import sys
    input = sys.stdin.readline
    N = int(input())
    K = int(input())
    n = [int(input()) for _ in range(N)]
    print(max(n)-min(n))


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