結果

問題 No.21 平均の差
ユーザー akakimidoriakakimidori
提出日時 2015-07-26 21:51:43
言語 C90
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 226 bytes
コンパイル時間 430 ms
コンパイル使用メモリ 23,156 KB
実行使用メモリ 6,100 KB
最終ジャッジ日時 2023-09-22 23:41:23
合計ジャッジ時間 12,924 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<stdio.h>

int main(void){

	int N;
	scanf("%d",&N);

	int max=1;
	int min=1000;
	scanf("%*d");

	while(N>0){
		int n;
		scanf("%d",&n);
		max=n>max?n:max;
		min=n<min?n:min;
	}

	printf("%d\n",max-min);

	return 0;
}
0