当前位置:网站首页>Extract non duplicate integers
Extract non duplicate integers
2022-04-23 15:40:00 【Ye Ningxia Xin】
describe
Enter a int Type integer , Read right to left , Returns a new integer with no repeating numbers .
Ensure that the last bit of the input integer is not 0 .
Data range :1≤n≤10^8
Input description :
Enter a int Type integer
Output description :
Read right to left , Returns a new integer with no repeating numbers
Example 1
Input :9876673
Output :37689
a = int(input())
b = a[::-1]
list = []
for i in b:
if i in list:
continue
else:
list.append(i)
print(i,end='')
a[:-1] And a[::-1] difference
a[:-1] And a[::-1] difference _baybig The blog of -CSDN Blog _a[::-1]
版权声明
本文为[Ye Ningxia Xin]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231534071517.html
边栏推荐
猜你喜欢

MySQL optimistic lock to solve concurrency conflict

JVM-第2章-类加载子系统(Class Loader Subsystem)

电脑怎么重装系统后显示器没有信号了

KNN, kmeans and GMM

【Leetcode-每日一题】安装栅栏

Machine learning - logistic regression

Neodynamic Barcode Professional for WPF V11. 0

大厂技术实现 | 行业解决方案系列教程

How did the computer reinstall the system? The display has no signal

多生成树MSTP的配置
随机推荐
多生成树MSTP的配置
小程序知识点积累
Detailed explanation of redirection and request forwarding
PHP function
Neodynamic Barcode Professional for WPF V11.0
Independent operation smart farm Innovation Forum
What role does the software performance test report play? How much is the third-party test report charged?
Upgrade MySQL 5.1 to 5.69
WPS品牌再升级专注国内,另两款国产软件低调出国门,却遭禁令
【Leetcode-每日一题】安装栅栏
多级缓存使用
PHP operators
pywintypes.com_error: (-2147221020, ‘无效的语法‘, None, None)
字符串最后一个单词的长度
Application of Bloom filter in 100 million flow e-commerce system
携号转网最大赢家是中国电信,为何人们嫌弃中国移动和中国联通?
MultiTimer v2 重构版本 | 一款可无限扩展的软件定时器
通过 PDO ODBC 将 PHP 连接到 MSSQL
How to test mobile app?
移动金融(自用)