这两天回家了
家里电脑太卡 调试不方便
就只能写写水题了……
#include<stdio.h>
#include<iostream>
#include<algorithm>
#include<math.h>
#include<string.h>
#include<string>
#include<map>
#include<set>
#include<vector>
#include<queue>
#define M(a,b) memset(a,b,sizeof(a))
using namespace std;
typedef long long ll;
int cnt[];
int main(){
int a,max_=-,sum=,cost=;
for(int i=;i<;i++){
scanf("%d",&a);
sum+=a;
cnt[a]++;
if(cnt[a]==)
cost=a*;
else if(cnt[a]>=)
cost=a*;
if(cost>max_)
max_=cost;
}
printf("%d\n",sum-max_);
return ;
}
/* 7 3 7 3 20 7 9 3 1 8 10 10 10 10 10 */