Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
93789 | 刘佳宇 | 13求7个数的最大值 | C++ | Accepted | 1 MS | 272 KB | 242 | 2024-10-19 11:19:58 |
#include<iostream> using namespace std; int main(){ int score; int max=0; for(int i=1;i<=7;i++){ cin>>score; if(score>max){ max = score; } } cout<<max*max<<" "<<max*max*max; }