#include using namespace std; int main() { int t,n,ai[10000],s,i,mx=0; // memset(ma,0,sizeof ma); while(scanf("%d",&n)!=EOF){ mapma; for(i=0;i