Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
123964 | 陈华仁星 | 13求7个数的最大值 | C++ | Accepted | 1 MS | 204 KB | 240 | 2025-07-10 15:23:44 |
#include <cstdio> #include <algorithm> using namespace std; int main() { int n,maxn=0; for(int i=1;i<=7;i++) { scanf("%d",&n); maxn=max(maxn,n); } printf("%d\n",maxn*maxn); printf("%d",maxn*maxn*maxn); return 0; }