| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 26097 | lmz120809 | 最大值和最小值的差 | C++ | Accepted | 0 MS | 240 KB | 262 | 2023-08-30 14:14:22 |
#include <iostream> using namespace std; int main() { int m, i, x, min=10000, max=-10000; cin >> m; for (i=0; i<m; i++){ cin >> x; if (x > max) max = x; if (x < min) min = x; } cout << max-min << endl; return 0; }