JavaShuo
栏目
标签
1100 Mars Numbers
时间 2020-12-23
原文
原文链接
题目大意: 如果给的是地球数字就要翻译成火星数字,否则翻译成地球数字,火星数字是13进制数。 解题思路: 由于给定数字范围为0-169,不包括169,也就是13*13-1( jou dec),所以对于火星翻译成地球可以直接截取字符串长度来截取对应的字符串然后翻译。需要注意的是13的倍数是一种特殊情况,只占一位数而没有后面的0(tret)。 代码如下: #include<iostream> #inc
>>阅读原文<<
相关文章
1.
1100 Mars Numbers (20 point(s))
2.
PAT-A1100/B1044 Mars Numbers/火星数字 题目内容及题解
3.
PAT_1027: Colors in Mars
4.
ZCMU-1100: 互质
5.
PAT_A1027 | Colors in Mars
6.
Colors in Mars (20)
7.
A1044. Shopping in Mars (25)
8.
Flying to the Mars
9.
hdoj_1800Flying to the Mars
10.
CSCI 1100 — Computer Science Homework
更多相关文章...
•
PHP 数组排序
-
PHP教程
•
Scala 运算符
-
Scala教程
•
Kotlin学习(二)基本类型
•
RxJava操作符(二)Transforming Observables
相关标签/搜索
numbers
mars
mars.2
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
Window下Ribbit MQ安装
2.
Linux下Redis安装及集群搭建
3.
shiny搭建网站填坑战略
4.
Mysql8.0.22安装与配置详细教程
5.
Hadoop安装及配置
6.
Python爬虫初学笔记
7.
部署LVS-Keepalived高可用集群
8.
keepalived+mysql高可用集群
9.
jenkins 公钥配置
10.
HA实用详解
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
1100 Mars Numbers (20 point(s))
2.
PAT-A1100/B1044 Mars Numbers/火星数字 题目内容及题解
3.
PAT_1027: Colors in Mars
4.
ZCMU-1100: 互质
5.
PAT_A1027 | Colors in Mars
6.
Colors in Mars (20)
7.
A1044. Shopping in Mars (25)
8.
Flying to the Mars
9.
hdoj_1800Flying to the Mars
10.
CSCI 1100 — Computer Science Homework
>>更多相关文章<<