摘要: 注意'X'的处理。 string s; int main() { cin>>s; int res=0,w=1; for(int i=0;i<s.size()-1;i++) if(isdigit(s[i])) res+=(s[i]-'0')*w++; if((s[s.size()-1] == 'X' 阅读全文
posted @ 2021-03-07 23:56 Dazzling! 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 水~。 int cnt[10010]; int n; int main() { cin>>n; for(int i=0;i<n;i++) { int x; cin>>x; cnt[x]++; } int res=0; for(int i=0;i<10001;i++) if(cnt[res] < cn 阅读全文
posted @ 2021-03-07 23:41 Dazzling! 阅读(14) 评论(0) 推荐(0) 编辑