結果
問題 | No.21 平均の差 |
ユーザー | A63295 |
提出日時 | 2015-12-18 00:13:04 |
言語 | C90 (gcc 11.4.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 391 bytes |
コンパイル時間 | 110 ms |
コンパイル使用メモリ | 23,664 KB |
実行使用メモリ | 4,356 KB |
最終ジャッジ日時 | 2023-10-14 13:03:58 |
合計ジャッジ時間 | 1,632 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
ソースコード
#include <stdio.h> int main(void){ int i , max, min, n, k, a[10]; max = 0; min = 1000; scanf ( "%d", &n); scanf ( "%d", &k); for ( i = 0; i < n; i++){ scanf ( "%d", a[i]); } for( i = 0; i < n; i++){ if ( max < a[i]){ max = a[i]; } if (min > a[i]){ min = a[i]; } } printf("%d\n",max -min); return 0; }