当前位置:网站首页>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
边栏推荐
- 小程序知识点积累
- Pytorch中named_parameters、named_children、named_modules函数
- MultiTimer v2 重构版本 | 一款可无限扩展的软件定时器
- 一刷312-简单重复set-剑指 Offer 03. 数组中重复的数字(e)
- Detailed explanation of redirection and request forwarding
- 控制结构(二)
- Summary of interfaces for JDBC and servlet to write CRUD
- Node.js ODBC连接PostgreSQL
- 【递归之数的拆分】n分k,限定范围的拆分
- Codejock Suite Pro v20.3.0
猜你喜欢
Advantages, disadvantages and selection of activation function
大厂技术实现 | 行业解决方案系列教程
Application of Bloom filter in 100 million flow e-commerce system
KNN, kmeans and GMM
ICE -- 源码分析
服务器中毒了怎么办?服务器怎么防止病毒入侵?
时序模型:门控循环单元网络(GRU)
Neodynamic Barcode Professional for WPF V11. 0
网站压测工具Apache-ab,webbench,Apache-Jemeter
APISIX jwt-auth 插件存在错误响应中泄露信息的风险公告(CVE-2022-29266)
随机推荐
c语言---指针进阶
What are the mobile app software testing tools? Sharing of third-party software evaluation
Introduction to dynamic programming of leetcode learning plan day3 (198213740)
一刷312-简单重复set-剑指 Offer 03. 数组中重复的数字(e)
【递归之数的拆分】n分k,限定范围的拆分
mysql乐观锁解决并发冲突
What if the package cannot be found
PHP 的运算符
Basic concepts of website construction and management
c语言---字符串+内存函数
Demonstration meeting on startup and implementation scheme of swarm intelligence autonomous operation smart farm project
多级缓存使用
Upgrade MySQL 5.1 to 5.69
PHP operators
KNN, kmeans and GMM
Advantages, disadvantages and selection of activation function
APISIX jwt-auth 插件存在错误响应中泄露信息的风险公告(CVE-2022-29266)
小程序知识点积累
怎么看基金是不是reits,通过银行购买基金安全吗
YML references other variables