| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 56252 | yuboyuan | 最大值和最小值的差 | C++ | Wrong Answer | 0 MS | 244 KB | 267 | 2024-11-09 22:37:45 |
#include<iostream> #include<cmath> using namespace std; int main() { int n,x,min=-10000,max=10000; cin>>n; for(int i=0;i<n;i++) { cin>>x; min=fmin(min,x); max=fmax(max,x); } cout<<max-min; return 0; }