Jayden-[解释通俗易懂,一看就会! ] 复数求和(结构体&&功能模块化) 摘要:解题思路: 题目是想求链表中复数之和,那么我们可以从链表入手,我的思路是:将第二个节点就当作是最后要求和的节点,把第二个节点之后的所有节点的数据都加在这个节点上,最后是输出headNod…… 题解列表 2024年03月12日 0 点赞 0 评论 332 浏览 评分:9.9
1027: [编程入门]自定义函数处理最大公约数与最小公倍数法二 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun1(int m,int n){ int min,num1; if(m>n){ min=n; …… 题解列表 2024年03月11日 0 点赞 0 评论 341 浏览 评分:0.0
1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码://思路 1.先求出两个数的最大公约数;//2.利用公式求最小公倍数=两个数的积/最大公约数#include <stdio.h>int main(){ int nu…… 题解列表 2024年03月11日 0 点赞 0 评论 401 浏览 评分:0.0
蓝桥杯2023年第十四届省赛真题-管道 摘要:首先根据题意,假如说在t时刻满足题目要求,那么比t大的时刻也一定满足要求,故具有单调性,此时可以想到用二分来做。对于每个二分出来的时刻,可以将每一个水阀所能检测的范围算出来(若该时刻小于水阀打开的时刻…… 题解列表 2024年03月11日 0 点赞 0 评论 1058 浏览 评分:9.9
最大公约数与最小公倍数 摘要:解题思路:最小公倍数=两数相乘再除以最大公约数注意事项:参考代码:#include<stdio.h>int main(){ int a,b,i,min,max; scanf("%d%d",&a,&b)…… 题解列表 2024年03月11日 0 点赞 0 评论 333 浏览 评分:0.0
数的划分(深搜) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n, m, ans; void dfs(int k,int s…… 题解列表 2024年03月11日 1 点赞 0 评论 382 浏览 评分:10.0
1013: [编程入门]Sn的公式求和--简单问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int n; scanf("%d",&n); int a=0; int sum=0; for(int i=0;…… 题解列表 2024年03月11日 0 点赞 0 评论 223 浏览 评分:9.9
1107: 纪念品分组(数学思维吧) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int n,k,a[100…… 题解列表 2024年03月11日 1 点赞 0 评论 442 浏览 评分:9.9
1042: [编程入门]电报加密--简单的问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[1000]; char b[1000]; gets(a); i…… 题解列表 2024年03月11日 0 点赞 0 评论 380 浏览 评分:9.9
C语言训练-斐波纳契数列 摘要:解题思路:注意事项:参考代码:mylist = [1,1]n = int(input())sum = 0if n==1: print(mylist[0])elif n>1: for i i…… 题解列表 2024年03月11日 0 点赞 0 评论 296 浏览 评分:9.9