結果
| 問題 |
No.21 平均の差
|
| ユーザー |
Respect2D
|
| 提出日時 | 2014-11-21 00:55:00 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 257 bytes |
| コンパイル時間 | 870 ms |
| コンパイル使用メモリ | 61,952 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2025-01-02 19:47:27 |
| 合計ジャッジ時間 | 1,521 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include <iostream>
#include <algorithm>
using namespace std;
int n, k;
int t[10];
int main(){
while(cin >> n >> k){
for(int i = 0; i < n; i++){
cin >> t[i];
}
sort(t, t + n);
cout << t[n - 1] - t[0] << endl;
}
}
Respect2D