#include #include using namespace std; bool comp(int a , int b); long long power(int x , int y); int main() { ios_base::sync_with_stdio(0); cin.tie(0); int n ; cin >> n; long long ans = 0; vector v(n); for(int i=0;i> v[i]; } sort(v.begin(),v.end(),comp); for(int i=0;i>1)); half*=half; if(y&1)return half*x; return half; } bool comp(int a , int b){ return a>b; }