Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
62354 夏梓瑞 13求7个数的最大值 C++ Accepted 2 MS 268 KB 233 2023-12-23 15:23:33

Tests(10/10):


Code:

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