思路如下 1、所有出现在等号两侧的硬币一定正常 2、在上述条件1以外的所有出现在不等式的硬币均有异常的嫌疑 3、在上述条件2的所有集合的交集是真正有嫌疑的硬币,注意嫌疑有过重和过轻之分 4、找出异常硬币的情况有两种 ①条件1排除了n-1个硬币的嫌疑 ②条件3获得的交集内元素数量为一 #include<bits/stdc++.h> #define int long long #define N 100005 using namespace std; int n,m,k,a[N]; set<int> s,b,e; bool f=0; ...