Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
90797 罗迎甲 13求7个数的最大值 C++ Accepted 1 MS 272 KB 217 2024-09-16 16:08:38

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int s; int max=0; for(int c=1;c<=7;c++){ cin>>s; if(s>max){ max=s; } } cout<<max*max<<endl; cout<<max*max*max<<endl; return 0; }