結果
| 問題 |
No.21 平均の差
|
| ユーザー |
FVRChan
|
| 提出日時 | 2017-07-27 08:41:59 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 225 bytes |
| コンパイル時間 | 668 ms |
| コンパイル使用メモリ | 59,212 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-09 20:27:48 |
| 合計ジャッジ時間 | 1,224 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#include<utility>
using namespace std;
int main(void){
int n,k,*w;
cin>>n>>k;
w=new int[n];
for(int i=0;i<n;i++)cin>>w[i];
sort(w,w+n);
cout<<w[n-1]-w[0]<<endl;
}
FVRChan