結果
| 問題 |
No.21 平均の差
|
| ユーザー |
cocomoff
|
| 提出日時 | 2019-08-05 22:51:49 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 228 bytes |
| コンパイル時間 | 1,317 ms |
| コンパイル使用メモリ | 162,016 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-18 13:49:31 |
| 合計ジャッジ時間 | 1,818 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, K; cin >> N >> K;
vector<int> x(N);
for (int i = 0; i < N; i++) { cin >> x[i]; }
sort(begin(x), end(x));
cout << x[N - 1] - x[0] << endl;
}
cocomoff