当前位置:网站首页>Openjudge: find the first character that appears only once
Openjudge: find the first character that appears only once
2022-07-28 05:36:00 【Programmer system】
describe
Given a string containing only lowercase letters , Please find the first character that appears only once . without , Output no.
Input
A string , The length is less than 100000.
Output
Output the first character that appears only once , If not, output no.
Instance input
abcabd
Instance output
c
Code
while True:
try:
a = input().strip()
for i in a:
if a.count(i) == 1:
print(i)
exit(0)
else:
print('no')
except:
break边栏推荐
猜你喜欢

框架一步一步方便使用的流程

Edge calculation kubeedge+edgemash

VMware Workstation 与 Device/Credential Guard 不兼容。禁用 Device/Credential Guard

FusionGAN代码学习(一)

Video twins: the starting point of informatization upgrading of smart Parks

repackag failed: Unable to find main class

repackag failed: Unable to find main class

Framework step by step easy-to-use process

ECCV22 最新54篇论文主图整理

SSLError
随机推荐
SimpleDateFormat线程不安全和DateTimeFormatter线程安全
ByteBuffer. Position throws exception illegalargumentexception
Long和Integer如何进行比较,为什么报错
Redis' bloom filter
Thesis writing function words
openjudge:万年历
New arrow function in ES6
【单例模式】懒汉模式的线程安全问题
VMware Workstation 与 Device/Credential Guard 不兼容。禁用 Device/Credential Guard
Localdatetime removes T, and jsonfield is invalid
Printf function of input and output function in C language
mysql 为查询结果增加序号
Invalid bound statement (not found): com.exam.mapper.UserMapper.findbyid
Edge calculation kubeedge+edgemash
Oracle创建表、删除表、修改表(添加字段、修改字段、删除字段)语句总结
SSM project quick build project configuration file
You must configure either the server or JDBC driver (via the ‘serverTimezone)
Use of IO streams
GET与POST区别
oracle查看锁表语句、解锁方法