Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5777 | 刘芃伽 | 13求7个数的最大值 | C++ | Accepted | 0 MS | 260 KB | 278 | 2024-12-14 19:47:06 |
#include<iostream> #include<limits.h>//INT_MTN INT_MAX using namespace std; int main() { int _max=INT_MIN,t;//int范围内最小的整数 for(int i=1;i<=7;i++){cin>>t;if(t>_max)_max=t;} cout<<_max*_max<<endl; cout<<_max*_max*_max<<endl; return 0; }