Run ID:5695
提交时间:2024-12-14 09:33:23
#include<iostream> // cin\cout\endl #include<algorithm> 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; }