还是畅通工程 摘要:解题思路:最小生成树模版题注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int f[1000]; struct node { …… 题解列表 2024年03月17日 0 点赞 0 评论 605 浏览 评分:9.9
蓝桥杯2023年第十四届省赛真题-飞机降落 摘要:#include <bits/stdc++.h> using namespace std; // 该题,因为数据范围很小,所以可以 把所有的排列情况列出来 // 然后 每列出 一个飞机,…… 题解列表 2024年03月17日 4 点赞 4 评论 2902 浏览 评分:10.0
直接解方程组 摘要:解题思路:注意事项:参考代码:x, a, y, b = map(int, input().split())m = b*y - a*xn = b- ares= m / nprint('%.2f&…… 题解列表 2024年03月17日 1 点赞 0 评论 813 浏览 评分:0.0
注意‘'x"要大写 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int h,l,i,z,y; int d;const int n;const int j;int *p=&j;…… 题解列表 2024年03月17日 0 点赞 0 评论 837 浏览 评分:0.0
1226题解——贪心 摘要:解题思路:分奇偶两种情况考虑。注意事项:参考代码:#include <stdio.h> #include <iostream> using namespace std; int gc…… 题解列表 2024年03月17日 0 点赞 0 评论 645 浏览 评分:0.0
切开字符串-C语言 ##切开字符串-C语言函数:正回文子串种类(manacher算法)、所有子串种类-正回文子串种类```#include#defineMaxChar100001intOddPalindromicStr(intnumber,char*str);//求正回文子串数量(字符总个数、原字符串指针)intNONO 题解列表 2024年03月18日 0 点赞 0 评论 608 浏览 评分:0.0
2809: 菲波那契数列(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b[9999],i; scanf("%d", &a); b[0]=1,b[1]=1…… 题解列表 2024年03月18日 0 点赞 0 评论 587 浏览 评分:9.9
自定义函数求一元二次方程,非常简单的做法 摘要:参考代码:#include<iostream> #include<math.h>using namespace std;int main(){ double a,b,c; double x1,x2,x…… 题解列表 2024年03月18日 0 点赞 0 评论 758 浏览 评分:0.0
数学真的很重要 解题思路:这是一个数学类型的题目,代码很简单,只要核心想到了答案就出来了。最大的不能买到的数字就是两个数字的最小公倍数再减去它们之和(设它为t),为什么是这样呢?最小公倍数就是两个数都可以单独构成,在减去两个数之和这个数一定不能单独构成了,也不能组合构成了,而t再往也不能构成了。 题解列表 2024年03月18日 0 点赞 0 评论 1048 浏览 评分:0.0