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.
升級Gradle後報錯Gradle‘s dependency cache may be corrupt (this sometimes occurs
2.
Smarter, Not Harder
3.
mac-2019-react-native 本地環境搭建(xcode-11.1和android studio3.5.2中Genymotion2.12.1 和VirtualBox-5.2.34 )
4.
查看文件中關鍵字前後幾行的內容
5.
XXE萌新進階全攻略
6.
Installation failed due to: ‘Connection refused: connect‘安卓studio端口占用
7.
zabbix5.0通過agent監控winserve12
8.
IT行業UI前景、潛力如何?
9.
Mac Swig 3.0.12 安裝
10.
Windows上FreeRDP-WebConnect是一個開源HTML5代理,它提供對使用RDP的任何Windows服務器和工作站的Web訪問
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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
>>更多相關文章<<