Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
75679 王馨桐 13求7个数的最大值 C++ Accepted 1 MS 276 KB 199 2024-05-28 19:01:21

Tests(10/10):


Code:

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