![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PAT甲级
文章平均质量分 60
排骨炖萝卜~
这个作者很懒,什么都没留下…
展开
-
算法笔记3.5----进制转换
算法笔记3.5----进制转换 A1019 General Palindromic Number(回文数) 题目地址 题⽬⼤意:给出两个整数a和b,问⼗进制的a在b进制下是否为回⽂数。是的话输出Yes,不是输出 No。并且输出a在b进制下的表示,以空格隔开 分析:将a转换为b进制形式,保存在int的数组⾥⾯,⽐较数组左右两端是否对称。 注意:如果是0,要输出Yes和0 #include<cstdio> using namespace std; int main(){ int a,b; sca原创 2021-05-06 22:17:00 · 296 阅读 · 0 评论 -
算法笔记3.3----图形输出
算法笔记3.3----图形输出 1031 Hello World for U #include<iostream> #include<string.h> using namespace std; int main(){ char c[80],u[30][30]; memset(u, ' ', sizeof(u));//初始化字符数组为空格,sizeof(u)表示数组大小 scanf("%s", c); int n = strlen(c) + 2; int n1 = n/3原创 2021-05-05 20:16:57 · 123 阅读 · 0 评论 -
算法笔记3.2----查找元素
算法笔记3.2----查找元素 A1011 World Cup Betting With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing battles for the World Cup trophy in South Africa. Similarly, footbal原创 2021-05-04 20:40:46 · 166 阅读 · 0 评论