Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
90022 杜春雨 13求7个数的最大值 C++ Accepted 1 MS 272 KB 236 2024-09-07 17:58:45

Tests(10/10):


Code:

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