結果

問題 No.135 とりあえず1次元の問題
ユーザー ID 21712
提出日時 2024-10-30 12:11:34
言語 Go
(1.23.4)
結果
WA  
実行時間 -
コード長 248 bytes
コンパイル時間 11,281 ms
コンパイル使用メモリ 226,440 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-30 12:11:48
合計ジャッジ時間 13,005 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other AC * 1 WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import . "fmt"
import . "slices"

func main() {
	var n int
	x:=make([]int,n)
	for i:=range x {
		Scan(&x[i])
	}
	Sort(x)
	x=Compact(x)
	if len(x)<2 {
		Println(0)
		return
	}
	for i,v:=range x[1:] {
		x[i]=v-x[i]
	}
	Println(Min(x))
}
0