結果
| 問題 | No.21 平均の差 |
| コンテスト | |
| ユーザー |
kongarishisyamo
|
| 提出日時 | 2016-02-24 02:15:32 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 267µs | |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 803 ms |
| コンパイル使用メモリ | 71,248 KB |
| 実行使用メモリ | 9,748 KB |
| 最終ジャッジ日時 | 2026-09-02 11:54:46 |
| 合計ジャッジ時間 | 1,463 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include<iostream>
using namespace std;
int main(){
int N,K;
int n;
int max=-1;
int min=10000;
cin>>N;
cin>>K;
for(int i=0;i<N;i++){
cin>>n;
if(n>max) max=n;
if(min>n) min=n;
}
cout<<max-min<<endl;
}
kongarishisyamo