当前位置:网站首页>openjudge:找第一个只出现一次的字符
openjudge:找第一个只出现一次的字符
2022-07-28 05:18:00 【编程器系统】
描述
给定一个只包含小写字母的字符串,请你找到第一个仅出现一次的字符。如果没有,输出no。
输入
一个字符串,长度小于100000。
输出
输出第一个仅出现一次的字符,若没有则输出no。
实例输入
abcabd
实例输出
c
代码
while True:
try:
a = input().strip()
for i in a:
if a.count(i) == 1:
print(i)
exit(0)
else:
print('no')
except:
break边栏推荐
- 图像增强评价指标学习之——结构相似性SSIM
- Framework step by step easy-to-use process
- How practical is the struct module? Learn a knowledge point immediately
- Dell remote control card uses ipmitools to set IPMI
- Antd setfieldsvalue warning problem cannot use 'setfieldsvalue' until you use 'getfielddecorator' or
- C language: some self realization of string functions
- 框架一步一步方便使用的流程
- 7.<tag-字符串和API的取舍>补充: 剑指 Offer 05. 替换空格
- 分享几种管理C程序中标志位的方法
- SSLError
猜你喜欢

多模块打包:程序包:xxx不存在

Test Development - UI testing in automated testing

【计算机三级信息安全】信息安全保障概述

mysql 为查询结果增加序号

11. < tag dynamic programming and subsequence, subarray> lt.115. Different subsequences + Lt. 583. Deletion of two strings DBC

Database date types are all 0

Invalid bound statement (not found): com.exam.mapper.UserMapper.findbyid

多线程进阶:volatile的作用以及实现原理

正则表达式

The solution after the samesite by default cookies of Chrome browser 91 version are removed, and the solution that cross domain post requests in chrome cannot carry cookies
随机推荐
ECCV22 最新54篇论文主图整理
多系统架构设计思考
Distillation model diagram
Google browser cannot open localhost:3000. If you open localhost, you will jump to the test address
When SQL queries the list, the data is inconsistent twice, and limit is automatically added
CentOS7安装MySQL5.7
Digital twin solutions inject new momentum into the construction of chemical parks
个人写的一个文件上传工具网站
11. < tag dynamic programming and subsequence, subarray> lt.115. Different subsequences + Lt. 583. Deletion of two strings DBC
oracle查看锁表语句、解锁方法
Thinking on multi system architecture design
Performance test classification
How to compare long and integer and why to report errors
7.<tag-字符串和API的取舍>补充: 剑指 Offer 05. 替换空格
使用深度学习训练图像时,图像太大进行切块训练预测
PC side bug record
block yandex bot
【计算机三级信息安全】信息安全保障概述
SSLError
蒸馏模型图