当前位置:网站首页>HJ base conversion
HJ base conversion
2022-06-28 07:38:00 【Courageous steak】
describe
Write a program , Accept a hexadecimal number , Output the decimal representation of the value .
Data range : Make sure the results are in 1≤n≤231-1
Input description :
Enter a string of hexadecimal values .
Example 1
Input :0xAA
Output :170
python solution
while True:
try:
s = input()
print(int(s, 16))
except:
break
Link to the original text :
https://www.920vip.net/article/174
边栏推荐
猜你喜欢
随机推荐
R 语言 Hitters 数据分析
Design and implementation of spark offline development framework
Unity-UI-shadow组件
以动态规划的方式求解最长回文子串
A gadget can write crawlers faster
R language drawing ggplot2 seasonal graph
扩展Prometheus的解决方案thanos的简介和几个月使用心得
kubernetes部署thanos ruler的发送重复告警的一个隐秘的坑
Ice, protobuf, thrift -- Notes
HJ删除字符串中出现次数最少的字符
7-2 Finnish wooden chess structure Sorting
推荐系统系列精讲(第五讲): 排序模型的调优实践
HJ质数因子
A single node obtains the lock lock of the order number
mysql57 zip文件安装
Understanding of OPC protocol
逆波兰表达式求值<难度系数>
8 张图 | 剖析 Eureka 的首次同步注册表
MMR重排(相似度通过编辑距离和重复度计算)
golang gin框架进行分块传输








