编写题解 1162: 密码(python) 摘要:fh = ['~','!','@','#','$','%','^'] num = [s…… 题解列表 2021年12月25日 0 点赞 0 评论 167 浏览 评分:0.0
二级C语言-计负均正 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j; int n[20],m=0,c=0,sum=0; float avg; for(i=0;i<2…… 题解列表 2021年12月25日 0 点赞 0 评论 279 浏览 评分:0.0
1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:1.最大公约数:指两个或多个整数共有约数中最大的一个。计算方法:辗转相除法辗转相除法也称欧几里得算法,简单地说就是两个数相除的余数,再用两个数中较小的那个数再次与余数相除,依次循环,直到最后…… 题解列表 2021年12月25日 0 点赞 0 评论 404 浏览 评分:9.9
链表之节点删除—题解(c语言代码) 摘要:解题思路:利用数组来进行求解注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int m,n,i,j,a[1000],b[10…… 题解列表 2021年12月25日 0 点赞 0 评论 390 浏览 评分:9.9
自定义函数处理最大公约数与最小公倍数(初学者) 摘要:解题思路:定义两个函数注意事项:定义函数写在主函数之后时,需要提前声明函数,否则报错。参考代码:#include"stdio.h" int max,min;void funcA(int a,int b…… 题解列表 2021年12月24日 0 点赞 1 评论 208 浏览 评分:9.9
2058: [STL训练]Who's in the Middle 摘要:把 n 个数先后压进向量,然后排序,最后直接用索引打印中位数。#include<bits/stdc++.h> using namespace std; int main(){ int…… 题解列表 2021年12月24日 0 点赞 0 评论 376 浏览 评分:9.9
2071: [STL训练]壮志难酬 摘要:用 find 函数找到小数点的位置,再加上往后移动的位数就是所求数字。#include<bits/stdc++.h> using namespace std; int main(){ …… 题解列表 2021年12月24日 0 点赞 0 评论 201 浏览 评分:0.0
栅格打印问题----两种写法,一种可AC,一种不可AC 摘要:```cpp //1.第一种为什么AC不了,无法理解 //#include //using namespace std; //int main(void) //{ // int a,b;…… 题解列表 2021年12月24日 0 点赞 0 评论 258 浏览 评分:9.9
最长单词------提供两种写法,第一种无法AC,第二种可AC 摘要:```cpp //1.我百思不得其解为什么这个AC不了 //#include //#include //using namespace std; //int main(void) //{…… 题解列表 2021年12月24日 0 点赞 0 评论 634 浏览 评分:9.3
1131: C语言训练-斐波纳契数列 摘要:这里采用的是循环方案,也可以用递归。#include<bits/stdc++.h> using namespace std; int main(){ int n; cin …… 题解列表 2021年12月24日 0 点赞 0 评论 153 浏览 评分:0.0