| 记录编号 | 358240 | 评测结果 | AAAAAAA | 
    
        | 题目名称 | 788.昵称 | 最终得分 | 100 | 
    
        | 用户昵称 |  sxysxy | 是否通过 | 通过 | 
    
        | 代码语言 | C++ | 运行时间 | 0.488 s | 
    
        | 提交时间 | 2016-12-15 09:03:03 | 内存使用 | 0.27 MiB | 
    
    
    
    		显示代码纯文本
		
		#include <cstdio>
#include <cstring>
#include <algorithm>
#include <set>
#include <map>
#include <iostream>
#include <cctype>
#include <string>
#include <fstream>
using namespace std;
ifstream fin("nickname.in");
ofstream fout("nickname.out");
#define cin fin
#define cout fout
int main()
{
    ios::sync_with_stdio(false);
    int T;cin >> T;
    while(T--)
    {
        map<string, int> tb;
        int n; cin >> n;
        while(n--)
        {
            string ss; cin>>ss;
            transform(ss.begin(), ss.end(), ss.begin(), ::tolower);
            tb[ss]++;
        }
        for(map<string, int>::iterator it = tb.begin(); it != tb.end(); ++it)
            cout << it->first << ' ' << it->second << '\n';
    }
    return 0;
}