Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
108579 胡海峰老师 求最大值 C++ Accepted 1 MS 268 KB 253 2025-01-20 20:58:17

Tests(1/1):


Code:

#include <iostream> using namespace std; int main () { int x,maxn=0; for(int i=1;i<=10;i++) { cin>>x; if( x>maxn) maxn =x; } cout<<maxn; return 0; } /* Input 10 6 1 3 5 87 100 25 111 56 Output 111 */