c012. 10062 - Tell me the frequencies!
Tags :
Accepted rate: 2717人/ 3188人 ( 85%) [非即時]
評分方式:
Tolerant

最近更新 : 2015-08-28 15:24

Content

給你一列文字,請你找出各字元出現的次數。

Input

每筆測試資料一列。每列最大長度為1000。

Output

對每一列輸入,請輸出各字元的ASCII值及其出現的次數。請根據出現的次數由小到大輸出。如果有2個以上的字元有相同的次數,則ASCII值較大的先輸出。 測試資料間請空一列,參考Sample Output

Sample Input #1
AAABBC
122333
Sample Output #1
67 1
66 2
65 3

49 1
50 2
51 3
測資資訊:
記憶體限制: 512 MB
公開 測資點#0 (100%): 1.0s , <1M
Hint :

* 中文翻譯:Lucky 貓

Tags:
出處:
UVa 10062

Status Forum 排行

ID User Problem Subject Hit Post Date
39607 toseanlin@gm ... (Dr. SeanXD) c012
解題思路
2077 2024-03-11 09:33
54351 bluesquid29 (bluesquid29) c012
284 2026-01-10 22:33
44298 uhong0628@gm ... (王德發wtf) c012
使用python解
707 2024-11-22 10:20
39317 n12603579tab ... (施智皓) c012
2527 2024-02-05 11:11
32881 anngood (anngood安安) c012
空白32
1814 2022-11-14 21:50