Contest1389 - 2018年第三阶段个人训练赛第四场.Not Found(水题)

给定一个字符串S,找出字母表中最小的未在S中出现的英文字母。如果所有字母都出现,则输出None。
摘要由CSDN通过智能技术生成

.

问题 A: Not Found

时间限制: 1 Sec  内存限制: 128 MB
提交: 463  解决: 178
[提交] [状态] [讨论版] [命题人:admin]

题目描述

You are given a string S consisting of lowercase English letters. Find the lexicographically (alphabetically) smallest lowercase English letter that does not occur in S. If every lowercase English letter occurs in S, print None instead.

Constraints
1≤|S|≤105 (|S| is the length of string S.)
S consists of lowercase English letters.

 

输入

Input is given from Standard Input in the following format:
S

 

 

输出

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值