結果

問題 No.21 平均の差
ユーザー o_chan_1998o_chan_1998
提出日時 2022-03-20 20:19:25
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 437 bytes
コンパイル時間 6,743 ms
コンパイル使用メモリ 146,260 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-16 13:24:53
合計ジャッジ時間 7,275 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,248 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 2 ms
5,376 KB
testcase_07 AC 2 ms
5,376 KB
testcase_08 AC 2 ms
5,376 KB
testcase_09 AC 2 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

func main()
	{ 数値入力待ち:変数`N` }
	var N: int :: cui@inputInt()
	{ 数値入力待ち:変数`K` }
	var K: int :: cui@inputInt()
	
	{ スペース区切りの文字列を数値配列Wに格納 }
	var n: []int :: #[N]int
	
	{ 数値入力待ち:数値配列`n[i]` }
	for i(0, N - 1)
		do n[i] :: cui@inputInt()
	end for
	
	{ n.max()-n.min()を出力 }
	do cui@print("\{n.max() - n.min()}")
	do cui@print("\n")
	
end func
0