#include <map>
#include <iostream>
#include <string>
using namespace std;
typedef map<string, int> M;
M a;
int n;
string s, b;
int main()
{
cin >> n;
string t[n];
for (int i = 0; i < n; i++)
{
cin >> s;
for (int i = 1; i <= 7; i++)
{
cin >> b;
s += b;
}
t[i] = s;
a[s]++;
cout << a[t[i]] << endl;
}
return 0;
}
CCF-CSP 202305-1 重复局面
于 2023-07-19 20:57:56 首次发布