Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
4342 | 张文曦 | 13求7个数的最大值 | C++ | Wrong Answer | 0 MS | 268 KB | 225 | 2024-08-16 15:24:44 |
#include<iostream> #include<climits> using namespace std; int main(){ int m=INT_MIN; int t; for(int i=1;i<=7;i++){ cin>>t; if(t>m) m=t; } cout<<m<<endl<<m*m<<endl<<m*m*m<<endl; }
------Input------
73 74 54 78 60 20 9
------Answer-----
6084 474552
------Your output-----
78 6084 474552