C++-字符串-找第一个只出现一次的字符(拓展01-计算出字符串中每一位字符的重复数量)
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Background
Description
计算出字符串中每一位字符的重复数量(同一个字符如果有多个就要体现多次,注意查看输入和输出)
Format
Input
Output
Samples
adfalawefbvalw
a:4
d:1
f:2
a:4
l:2
a:4
w:2
e:1
f:2
b:1
v:1
a:4
l:2
w:2
adsfadsfliefafae
a:4
d:2
s:2
f:4
a:4
d:2
s:2
f:4
l:1
i:1
e:2
f:4
a:4
f:4
a:4
e:2
Limitation
1s, 1024KiB for each test case.