当前位置:网站首页>Pat grade a 1027 colors in Mars
Pat grade a 1027 colors in Mars
2022-07-03 07:42:00 【IX. is it a non random title】
10 Turn into the system 13 It's binary , Pay attention to supplement the two 0
#include<iostream>
#include<vector>
#include<bits/stdc++.h>
using namespace std;
string convert13(int k){
string s;
int m, n, i;
m = k;
if(m==0) s = "00";
while(m!=0){
m = k/13;
n = k%13;
if(n==10) s += "A";
else if(n==11) s += "B";
else if(n==12) s += "C";
else s += to_string(n);
k = m;
}
reverse(s.begin(), s.end());
if(s.length()==1) return "0" + s;
return s;
}
int main(int argc, char **argv){
int a, c, w, i, j;
cin>>a>>c>>w;
cout<<"#"<<convert13(a)<<convert13(c)<<convert13(w);
return EXIT_SUCCESS;
}边栏推荐
- 华为交换机Console密码重置、设备初始化、默认密码
- Go language foundation ----- 13 ----- file
- Go language foundation ----- 11 ----- regular expression
- Some basic operations of reflection
- 技术干货|利用昇思MindSpore复现ICCV2021 Best Paper Swin Transformer
- 昇思MindSpore再升级,深度科学计算的极致创新
- The difference between typescript let and VaR
- PAT甲级 1032 Sharing
- 技术干货|昇思MindSpore算子并行+异构并行,使能32卡训练2420亿参数模型
- 研究显示乳腺癌细胞更容易在患者睡觉时进入血液
猜你喜欢

Use of other streams

Go language foundation ----- 15 ----- reflection

【MySQL 11】怎么解决MySQL 8.0.18 大小写敏感问题

Technical dry goods Shengsi mindspire operator parallel + heterogeneous parallel, enabling 32 card training 242 billion parameter model

【MySQL 14】使用DBeaver工具远程备份及恢复MySQL数据库(Linux 环境)

Understanding of class
![[set theory] Stirling subset number (Stirling subset number concept | ball model | Stirling subset number recurrence formula | binary relationship refinement relationship of division)](/img/d8/b4f39d9637c9886a8c81ca125d6944.jpg)
[set theory] Stirling subset number (Stirling subset number concept | ball model | Stirling subset number recurrence formula | binary relationship refinement relationship of division)
![[coppeliasim4.3] C calls UR5 in the remoteapi control scenario](/img/ca/2f72ea3590c358a6c9884aaa1a1c33.png)
[coppeliasim4.3] C calls UR5 in the remoteapi control scenario

Leetcode 213: looting II

Es writing fragment process
随机推荐
Vertx's responsive MySQL template
华为S5700交换机初始化和配置telnet,ssh用户方法
【CoppeliaSim4.3】C#调用 remoteApi控制场景中UR5
Structure of golang
Iterm2设置
Lucene merge document order
Lombok cooperates with @slf4j and logback to realize logging
Partage de l'expérience du projet: mise en œuvre d'un pass optimisé pour la fusion IR de la couche mindstore
An overview of IfM Engage
【MindSpore论文精讲】AAAI长尾问题中训练技巧的总结
Lucene introduces NFA
c语言指针的概念
[coppeliasim4.3] C calls UR5 in the remoteapi control scenario
What did the DFS phase do
Traversal in Lucene
【踩坑系列】mysql 修改root密码失败
Beginners use Minio
pgAdmin 4 v6.11 发布,PostgreSQL 开源图形化管理工具
Technical dry goods | hundred lines of code to write Bert, Shengsi mindspire ability reward
Qtip2 solves the problem of too many texts
https://github.com/ZouJiu1/PAT