結果

問題 No.716 距離
ユーザー 310icecrystal310icecrystal
提出日時 2023-06-10 20:52:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 144 bytes
コンパイル時間 249 ms
コンパイル使用メモリ 87,100 KB
実行使用メモリ 71,208 KB
最終ジャッジ日時 2023-08-31 00:52:22
合計ジャッジ時間 5,124 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
71,204 KB
testcase_01 AC 59 ms
70,936 KB
testcase_02 AC 60 ms
71,052 KB
testcase_03 AC 60 ms
71,140 KB
testcase_04 AC 59 ms
71,112 KB
testcase_05 AC 64 ms
70,924 KB
testcase_06 AC 61 ms
70,644 KB
testcase_07 AC 60 ms
71,160 KB
testcase_08 AC 62 ms
70,820 KB
testcase_09 AC 59 ms
70,820 KB
testcase_10 AC 60 ms
70,980 KB
testcase_11 AC 59 ms
71,024 KB
testcase_12 AC 60 ms
71,120 KB
testcase_13 AC 58 ms
71,060 KB
testcase_14 AC 59 ms
70,968 KB
testcase_15 AC 58 ms
70,780 KB
testcase_16 AC 59 ms
70,648 KB
testcase_17 AC 59 ms
70,956 KB
testcase_18 AC 60 ms
71,208 KB
testcase_19 AC 59 ms
71,132 KB
testcase_20 AC 62 ms
71,032 KB
testcase_21 AC 60 ms
71,172 KB
testcase_22 AC 60 ms
71,112 KB
testcase_23 AC 61 ms
70,948 KB
testcase_24 AC 59 ms
71,052 KB
testcase_25 AC 60 ms
71,120 KB
testcase_26 AC 59 ms
71,072 KB
testcase_27 AC 60 ms
71,068 KB
testcase_28 AC 59 ms
71,136 KB
testcase_29 AC 59 ms
71,172 KB
testcase_30 AC 59 ms
70,936 KB
testcase_31 AC 59 ms
71,068 KB
testcase_32 AC 60 ms
71,180 KB
testcase_33 AC 60 ms
71,032 KB
testcase_34 AC 60 ms
71,164 KB
testcase_35 AC 59 ms
71,020 KB
testcase_36 AC 59 ms
71,128 KB
testcase_37 AC 60 ms
71,052 KB
testcase_38 AC 61 ms
70,664 KB
testcase_39 AC 60 ms
70,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
a = list(map(int,input().split()))
a.sort()

m = 10**18
for i in range(N-1):
	m = min(m,a[i+1]-a[i])
print(m)
print(a[-1]-a[0])
0