Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
56926 张志鹏 Bill C++ 通过 100 1 MS 264 KB 266 2022-08-03 16:59:51

Tests(10/10):


#include<bits/stdc++.h> using namespace std; int n; map<char,int> m; int main(){ cin>>n; while(n--){ char a,b; cin>>a>>b; m[a]++; m[b]--; } cout<<"D"<<" "<<m['D']<<endl; cout<<"G"<<" "<<m['G']<<endl; cout<<"Z"<<" "<<m['Z']; return 0; }


测评信息: