Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151528 gqj 13求7个数的最大值 C++ Wrong Answer 1 MS 272 KB 239 2026-04-13 17:09:32

Tests(3/10):


Code:

#include <iostream> using namespace std; int main(){ long long n; cin>>n; long long max=0; for(int i=1;i<=n;i++){ int a; cin>>a; if(a>=max){ max=a; } } cout<<max*max<<" "<<max*max*max; }


Run Info:

------Input------
76 49 40 8 12 52 5
------Answer-----
5776 438976
------Your output-----
2704 140608