#H. C++-字符串-找第一个只出现一次的字符(拓展01-计算出字符串中每一位字符的重复数量)

    Type: Default 1000ms 256MiB

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

计算出字符串中每一位字符的重复数量(同一个字符如果有多个就要体现多次,注意查看输入和输出)

image

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.

字符串作业

Not Claimed
Status
Done
Problem
11
Open Since
2025-4-10 0:00
Deadline
2025-6-30 23:59
Extension
24 hour(s)