Educational Codeforces Round 46 (Div 2) (A~G)
[TOC] <center>Codeforces 1000</center> 比赛链接 CF的第1000场比赛。。 在学校熬到12点半打CF而不是看他们打联盟真是。。rating差点掉真是难受啊。 A.Codehorses T-shirts 因为长度固定,所以看着分就好了... 当然其实只需要 map<string,int> 。 #include <cstdio> #include <cctype> #include <cstring> #include <algorithm> #define gc() getchar() const int N=105; int n,have[4][3],sum[4][3],ref[2333];//x:0~3 S/L inline int read() { int now=0;register char c=gc(); for(;!isdigit(c);c=gc()); for(;isdigit(c);now=now*10+c-'0',c=gc()); return now; } int main() { n=read(); char s[233]; ref['S']=0, ref['L']=1, ref['M']=2; for(int l,i=1; i<=n; ++i) { scanf("%s",s+1), l=strlen(s+1); +