Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
70602 黄枳润 13求7个数的最大值 C++ Accepted 1 MS 276 KB 272 2024-04-16 18:32:23

Tests(10/10):


Code:

#include<iostream> using namespace std; int main() { int a,i,j,l,max=0; for(l=1;l<=7;l++){ cin>>a; if(a>max){ max=a; } } i=max*max; j=max*max*max; cout<<i<<endl; cout<<j<<endl; return 0; }