Hifipsysta-1691-数据结构-KMP字符串模式匹配算法实现(C++代码) 摘要:```cpp #include using namespace std; const int MXN=1e2+10; int nextTable[MXN]; int getNextTa…… 题解列表 2022年03月09日 0 点赞 0 评论 705 浏览 评分:0.0
C++直接减法模拟 摘要:解题思路:直接减法模拟即可注意事项:记得考虑余数不输出和商不输出的情况,此时输出0参考代码:#include<stdio.h>#include<string.h> const int N=1e5+5;…… 题解列表 2022年03月09日 0 点赞 0 评论 1120 浏览 评分:9.0
编写题解 1011: [编程入门]最大公约数与最小公倍数--简单解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n; scanf("%d %d",&m,&n); int min = (m<n)?m:n; int …… 题解列表 2022年03月09日 0 点赞 0 评论 292 浏览 评分:0.0
别人的,读题太麻烦 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int i; scanf("%d", &i); if (i <= 100000) {//…… 题解列表 2022年03月09日 0 点赞 0 评论 426 浏览 评分:9.9
编写题解 1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void han(int m,int n){ int min = (m<n)?m:n; int max = (m>n)?m:n; …… 题解列表 2022年03月09日 0 点赞 0 评论 274 浏览 评分:0.0
编写题解 1028: [编程入门]自定义函数求一元二次方程--借鉴大佬的 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;float delta_func(float a,float b…… 题解列表 2022年03月09日 0 点赞 0 评论 378 浏览 评分:0.0
编写题解 1042: [编程入门]电报加密--解题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<stdio.h>#include<string.h>#include<cmath>using namespace s…… 题解列表 2022年03月09日 0 点赞 0 评论 339 浏览 评分:0.0
(fly)1709: 数据结构-Floyd(弗洛伊德)最短路径算法(python) 摘要:解题思路:注意事项:参考代码:n=int(input()) inf=float('inf') dp=[] for i in range(n): dp.append(li…… 题解列表 2022年03月09日 0 点赞 0 评论 392 浏览 评分:0.0
编写题解 1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3]; int t; for(int i=0;i<3;i++){ s…… 题解列表 2022年03月09日 0 点赞 0 评论 329 浏览 评分:0.0
优质题解 1052: [编程入门]链表合并 摘要:解题思路:主要需要解决的问题:(1)如何合并(2)如何排序是一边排序一边合并呢?还是先合并再排序呢?我选择了后者。一共写了5个子函数,分别用于创建链表,打印链表,合并链表,交换两结点数据,排序(需要调…… 题解列表 2022年03月09日 4 点赞 6 评论 4510 浏览 评分:9.6