Run ID:5698

提交时间:2024-12-14 09:35:38

#include<iostream> // cin\cout\endl #include<algorithm> #include<limits.h> using namespace std; int main(){ int m=INT_MIN;//最小//INT_MAX最大 int temp; for(int i=1;i<=7;i++){ cin>>temp; if(temp>m) swap(temp,m);//交换temp和m的值 } cout<<m*m<<endl; cout<<m*m*m<<endl; return 0; }