题目:
分析:
考察字符串的存储和统计。
代码:
#include<bits/stdc++.h>
#include<unordered_map>
using namespace std;
#define int long long
unordered_map<string, int >p;
signed main() {
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
int t;
cin >> t;
while (t--) {
string ans = "";
for (int i = 1; i <= 8; i++) {
string s;
cin >> s;
ans += s;
}
p[ans]++;
cout << p[ans] << "\n";
}
return 0;
}