字母统计 题解:
#include<bits/stdc++.h>
using namespace std;
int main(){
string s;
while(cin >> s){
map<char, int> dict;
for(int i = 0; i < 26; i++){
dict['A' + i] = 0;
}
for(int i = 0; i < s.length(); i++){
if('A' <= s[i] && s[i] <= 'Z'){
dict[s[i]]++;
&...
登录后发布评论
暂无评论,来抢沙发