递归解决最大公约数问题——辗转相除法 摘要:#解题思路: 1、首先写一个函数 ```cpp int gcd(int a,int b); ``` 2、然后递归 ```cpp int gcd(int a,int b){ retur…… 题解列表 2022年05月11日 0 点赞 0 评论 522 浏览 评分:0.0
编写题解 1118: Tom数 一起来试试 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void main(){ char str[10]={ '0' }; whi…… 题解列表 2022年05月11日 0 点赞 0 评论 469 浏览 评分:0.0
不难不难循环加判断 摘要:解题思路:注意事项:kan了题解也终于是会写了,忘记python本身输入就是字符串,之前也写过转换字符串chr he ord两个函数都忘记了参考代码:x=input()s=""for i in x:…… 题解列表 2022年05月11日 0 点赞 0 评论 373 浏览 评分:0.0
按顺序输出三个数不难 摘要:解题思路:注意事项:可以引用下标输出,也可以直接循环输出都可一,就是上面列表名字要用起来参考代码:a=list(map(int,input().split()))a.sort()#yinwei上面定义…… 题解列表 2022年05月11日 0 点赞 0 评论 461 浏览 评分:0.0
编写题解 1547: 蓝桥杯算法提高VIP-理财计划(floor向下取整) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include <bits/stdc++.h> using namespace std; int main() { …… 题解列表 2022年05月11日 0 点赞 0 评论 337 浏览 评分:0.0
实数的打印 (简单输出就欧了,c++) 摘要:解题思路:按题目要求输入,并用"6.2f"输出。注意事项:要用printf输出。参考代码:#include<bits/stdc++.h>using namespace std;float a;int …… 题解列表 2022年05月11日 0 点赞 0 评论 406 浏览 评分:0.0
二级C语言-成绩归类 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a,yx,tg,bjg;int main(){ for(;…… 题解列表 2022年05月11日 0 点赞 0 评论 369 浏览 评分:0.0
二级C语言-阶乘公式求职 摘要:解题思路:简单模拟注意事项:参考代码:#include<bits/stdc++.h>using namespace std;double n,m=1,s=1;int main(){ cin>>n…… 题解列表 2022年05月11日 0 点赞 0 评论 385 浏览 评分:0.0
编写题解 1572: 蓝桥杯算法提高VIP-进制转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int s; scanf("%x",&s); printf("%X %d %o",s,s,s…… 题解列表 2022年05月11日 0 点赞 0 评论 464 浏览 评分:0.0
电报加密数组函数传值指针处理 摘要:#include char dd(char a[]) { while(*a!='\0') { if((*a>='a'&&*a='A'&&*a…… 题解列表 2022年05月11日 0 点赞 0 评论 375 浏览 评分:0.0