当前位置:网站首页>HJ进制转换
HJ进制转换
2022-06-28 07:36:00 【有勇气的牛排】
描述
写出一个程序,接受一个十六进制的数,输出该数值的十进制表示。
数据范围:保证结果在 1≤n≤231-1
输入描述:
输入一个十六进制的数值字符串。
示例1
输入:0xAA
输出:170
python解法
while True:
try:
s = input()
print(int(s, 16))
except:
break
边栏推荐
- GoLand IDE and delve debug Go programs in kubernetes cluster
- MMR重排(相似度通过编辑距离和重复度计算)
- "Three routines" of digital collection market
- Application of XOR. (extract the rightmost 1 in the number, which is often used in interviews)
- What should I do if the version is incompatible with the jar package conflict?
- es6箭头函数中return的用法
- LLVM 与 Clang
- Huawei cloud computing physical node cna installation tutorial
- Devtools implementation principle and performance analysis practice
- 8 figures | analyze Eureka's first synchronization registry
猜你喜欢

云原生(待更新)

kubelet驱逐机制的源码分析

推荐系统系列精讲(第五讲): 排序模型的调优实践

数字藏品市场“三大套路”

ABAP 技能树

Solving the longest palindrome substring by dynamic programming

Yesterday, I went to a large factory for an interview and asked me to do four arithmetic operations. Fortunately, I am smart enough

Jetpack - defects of livedata component and Countermeasures

linux下修改mysql端口号

golang gin框架进行分块传输
随机推荐
Real time database - Notes
mysql57 zip文件安装
kubelet驱逐机制的源码分析
Implementation of commit message standardized control in large projects
GoLand IDE and delve debug Go programs in kubernetes cluster
腾讯下半年继续裁员,所有事业群至少缩减 10%,对此你怎么看?关注者
Hash slot of rediscluster cluster cluster implementation principle
ice - 资源
ACM笔记
Pfizer's new Guankou medicine has entered the Chinese market, and the listing of relevant products of domestic pharmaceutical enterprises is just around the corner
XML序列化向后兼容
Unity UI shadow component
分析 NFT 项目的 5 个指标
Is it reliable to register and open an account for stock speculation? Is it safe?
Encyclopedia of scala operators
Uninstall and reinstall the latest version of MySQL database. The test is valid
R语言绘制 ggplot2 季节性图
Makefile
Cloud native (to be updated)
Analyze 5 indicators of NFT project