Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
124195 陶婉晴 13求7个数的最大值 C++ Accepted 1 MS 272 KB 375 2025-07-11 10:37:36

Tests(10/10):


Code:

#include<iostream> using namespace std; int main() { int max=0; int a,b,c,d,e,f,g; cin>>a>>b>>c>>d>>e>>f>>g; if(max<a){ max=a; } if(max<b){ max=b; } if(max<c){ max=c; } if(max<d){ max=d; } if(max<e){ max=e; } if(max<f){ max=f; } if(max<g){ max=g; } cout<<max*max<<endl; cout<<max*max*max<<endl; return 0; }