b1021专题

PAT B1021 -- 个位数统计

题目如下:LINK 代码如下: #include <iostream>#include <string>#include <map>using namespace std;int main(){string strN;int count[10] = {0,0,0,0,0,0,0,0,0,0};while (cin >> strN){//计算每个个位数的个数for (int i = 0;