当前位置:网站首页>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
边栏推荐
- 控制结构(一)
- G007-HWY-CC-ESTOR-03 华为 Dorado V6 存储仿真器搭建
- 【AI周报】英伟达用AI设计芯片;不完美的Transformer要克服自注意力的理论缺陷
- Advantages, disadvantages and selection of activation function
- 一刷314-剑指 Offer 09. 用两个栈实现队列(e)
- Mobile finance (for personal use)
- 电脑怎么重装系统后显示器没有信号了
- fatal error: torch/extension. h: No such file or directory
- Use of common pod controller of kubernetes
- Basic concepts of website construction and management
猜你喜欢
随机推荐
Multitimer V2 reconstruction version | an infinitely scalable software timer
一刷312-简单重复set-剑指 Offer 03. 数组中重复的数字(e)
移动app软件测试工具有哪些?第三方软件测评小编分享
今日睡眠质量记录76分
Advantages, disadvantages and selection of activation function
Deep learning - Super parameter setting
Go语言条件,循环,函数
[backtrader source code analysis 18] Yahoo Py code comments and analysis (boring, interested in the code, you can refer to)
通过 PDO ODBC 将 PHP 连接到 MySQL
字节面试 transformer相关问题 整理复盘
多生成树MSTP的配置
负载均衡器
Today's sleep quality record 76 points
Recommended search common evaluation indicators
Upgrade MySQL 5.1 to 5.611
Functions (Part I)
JSON date time date format
时序模型:门控循环单元网络(GRU)
自动化测试框架常见类型▏自动化测试就交给软件测评机构
Mumu, go all the way