輸入一篇英文文章,統(tǒng)計出其中每個字母的出現(xiàn)次數(shù)(不區(qū)分大小寫)
輸入若干行,保證輸入數(shù)據(jù)只包含英文字符,并總長度不超過100000
輸出26行,從小到大按照固定的格式輸出每個字母的出現(xiàn)次數(shù)(詳見樣例)
Hello,Everyone! Here are two important activities that happened this week. These days,Li Jia,our classmate,has kept practising spoken English hard with the teacher's help. On Wednesday afternoon,she won the first prizein the English speech contest. How exciting it is! We should learn from her. Yesterday,we donated 200 books, 50 backpacks and 4200 yuan for the students in Sichuan. He Li alone donated 500 yuan,the most of all. That's good. I think that as a student,we needn't care how much we should give. Showing our love is the most important.
cnt[a] = 33 cnt[b] = 2 cnt[c] = 12 cnt[d] = 17 cnt[e] = 56 cnt[f] = 5 cnt[g] = 7 cnt[h] = 33 cnt[i] = 28 cnt[j] = 1 cnt[k] = 7 cnt[l] = 15 cnt[m] = 7 cnt[n] = 31 cnt[o] = 31 cnt[p] = 11 cnt[q] = 0 cnt[r] = 19 cnt[s] = 33 cnt[t] = 43 cnt[u] = 10 cnt[v] = 4 cnt[w] = 12 cnt[x] = 1 cnt[y] = 7 cnt[z] = 1
不要浪費時間輸出樣例,沒有分
2023秋冬學期第3次測試(初中)
比賽時間2024年1月1日(星期一)15:30-17:30,時長兩小時,
題目共七題,考察范圍:分支結構、循環(huán)、數(shù)組、簡單算法
比賽期間僅可詢問題意,不允許互相交流,不允許上網查資料。