結果
問題 |
No.21 平均の差
|
ユーザー |
|
提出日時 | 2018-10-03 15:22:42 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 254 bytes |
コンパイル時間 | 534 ms |
コンパイル使用メモリ | 62,312 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-12 10:21:46 |
合計ジャッジ時間 | 1,084 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 10 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int N, k; cin >> N, k; vector<int> n(N); for (auto &x : n) cin >> x; cout << *max_element(n.begin(), n.end()) - *min_element(n.begin(), n.end()) << endl; }