Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
117178 | 胡海峰老师 | 求最大值 | C++ | Accepted | 1 MS | 276 KB | 265 | 2025-04-13 20:55:17 |
#include <iostream> using namespace std; int main(){ int max = -999; // 数组array a[] n数组长度 for (int i = 1;i <= 10;i++) { int tmp; cin>>tmp; if (tmp>max) max = tmp; } cout<<max; return 0; }