C++-字符串-找第一个只出现一次的字符(拓展05-使用字符数组和sort排序,输出ASCII值最小且只出现一次的字符)
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
找出只出现一次的字符。给定一个只包含小写字母的字符串,请输出ASCII值最小且只出现一次的字符。如果没有,输出no。
注:使用字符数组(字符的长度为1~100之间)和sort排序。
Format
Input
Output
Samples
adfalawefbvalw
b
aadfadfadf
no
adsfadsfliefafae
i
Limitation
1s, 1024KiB for each test case.