//暴力30Points #include using namespace std; #define int long long const int MAX_N = 1000+5; int a[MAX_N]; int n,amax=INT_MIN,ans=0; unordered_map um; int readint(); signed main(signed argc,char *argv[]){ #ifdef OITEST #define AS_EQ(a,b){if((a)!=(b)){cerr<<"assert eq faild:"<1){ um[num]+=a[i]; } } for(auto i : um){ ans+=i.second; } cout<>cans; AS_EQ(ans,cans) #endif } int readint(){ int x=0,w=1; char ch=0; while(!isdigit(ch)){ if(ch=='-')w=-1; ch=getchar(); } while(isdigit(ch)){ x=x*10+(ch-'0'); ch=getchar(); } return x*w; }