根据最大公约数与最小公倍数的定义来求解 摘要:解题思路:无注意事项:无参考代码:#include<stdio.h>int main(){ int m,n,i,j,c=1; scanf("%d%d",&m,&n); for(i=2…… 题解列表 2022年10月10日 0 点赞 0 评论 385 浏览 评分:9.3
C语言解决 加密问题 摘要:解题思路:超简单,利用ASCLL代码表,相邻字母间相差1个ASCLL值注意事项:利用了strlen函数,需要#include<string,h>参考代码:#include <stdio.h>#incl…… 题解列表 2022年10月12日 0 点赞 0 评论 422 浏览 评分:9.3
[编程基础]输入输出练习之格式控制 摘要:解题思路:两种方法1.左对齐:'%-8d'%n 。不加-为右对齐(默认)2.'{:<8d}'.format(n)。>为右对齐,d表示十进制。注意事项:参考代码:a,b,…… 题解列表 2022年10月17日 0 点赞 0 评论 1295 浏览 评分:9.3
编写题解 1267: A+B Problem 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())#map()方法将字符串转化为整型 print(a+b)…… 题解列表 2022年10月18日 0 点赞 0 评论 804 浏览 评分:9.3
蓝桥杯2022年第十三届省赛真题-青蛙过河 摘要: ~~~ // 该题目题意为 最小的跳跃距离在满足每个过程中的h【k】 !=0时,k属于【0-n-1】,能过从起点通过 2c次对岸,思路分析: 根据题目意思,很明显想到使用二分查找,因为跳跃距离…… 题解列表 2022年10月22日 0 点赞 0 评论 2102 浏览 评分:9.3
编写题解 2836: 数组逆序重放 摘要:解题思路:逆序:nums[::-1]注意事项:参考代码:n=int(input()) nums=list(map(int,input().split())) #打包为整型数组 for i in n…… 题解列表 2022年10月23日 0 点赞 0 评论 787 浏览 评分:9.3
判断能否被3、5、7整除代码 摘要:解题思路:注意事项:注意 else if 的使用方法参考代码:#include <stdio.h>#include <stdio.h>int main(){ int m; scanf("%…… 题解列表 2022年10月23日 0 点赞 1 评论 968 浏览 评分:9.3
思路简单的c语言啊 摘要:1,原题链接:[修建灌木](https://www.dotcpp.com/oj/problem2657.html "修建灌木") 2,解题思路: 由题意容易找寻规律,若灌木每天从早上到…… 题解列表 2022年10月25日 0 点赞 0 评论 515 浏览 评分:9.3
字符串正反连接(简单C++) 摘要:#include<iostream> using namespace std; #include<string.h> int main() { char s1[50],s2[50];…… 题解列表 2022年10月26日 0 点赞 0 评论 555 浏览 评分:9.3
求矩阵的两对角线上的元素之和(思路清晰———二维数组) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n,i,j,a[10][10],s=0,…… 题解列表 2022年10月27日 0 点赞 0 评论 392 浏览 评分:9.3