题目传送门

 /*
题意:数据加10组,再删掉第6组数据,问rejudge后最少最多几个作者收到邮件
思维题:当错在6时结果是不一定,错在7时是一定改变,因为会变成6
思路没错,但用结构题排序一直WA,代码有毒!学习使用set容器。
*/
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <string>
#include <iostream>
#include <set>
using namespace std; const int MAXN = 1e3 + ;
const int INF = 0x3f3f3f3f;
string name, res;
set<string> mn, mx; int main(void) //URAL 1718 Rejudge
{
// freopen ("H.in", "r", stdin); int n; scanf ("%d", &n);
for (int i=; i<=n; ++i)
{
cin >> name >> res;
if (res == "CE") continue;
else if (res == "AC")
{
mx.insert (name); continue;
}
else
{
int x; scanf ("%d", &x);
if (x == ) mx.insert (name);
else if (x == )
{
mn.insert (name); mx.insert (name);
}
}
} printf ("%d %d\n", mn.size (), mx.size ()); return ;
}
05-23 20:53