Run ID:5701
提交时间:2024-12-14 09:37:39
#include<iostream> // cin\cout\endl #include<algorithm> #include<limits.h> using namespace std; int main(){ int m=INT_MIN; int t; for(int i=1;i<=7;i++){ cin>>t; if(t>m) swap(t,m); } cout<<m*m<<endl; cout<<m*m*m<<endl; return 0; }