链表实现复数求和(头插+尾插)C语言实现 摘要:解题思路:注意事项:参考代码:<1.尾插版>#include<stdio.h>#include<malloc.h> #include<stdlib.h>typedef struct number{ i…… 题解列表 2023年03月14日 0 点赞 0 评论 416 浏览 评分:0.0
使用两个数组,一个判断是否走过,另一个判断字母是否重复。 摘要:这题的递归并没有结束条件,求最长的取单词路径长度,也就是说,上下左右都走不了,就是结束的时候,搜集最大路径的sum。 import java.math.BigInteger; import…… 题解列表 2023年03月14日 0 点赞 0 评论 835 浏览 评分:0.0
Switch打表-直接暴力 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;import static java.lang.System.exit;public class Main { p…… 题解列表 2023年03月14日 0 点赞 1 评论 338 浏览 评分:0.0
出现次数超过一半的数 可AC 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<malloc.h>#include<stdlib.h>int main(){ int n,flag=0,a[100]=…… 题解列表 2023年03月14日 0 点赞 0 评论 438 浏览 评分:0.0
蓝桥杯专题系列-1541(Python) 摘要:解题思路:内置math函数gcd()求最大公约数,但本题其实考察的是数的拆分注意事项:不要傻傻的用函数自己调用自己参考代码:Python暴力解法:import mathcnt = 0n = int(i…… 题解列表 2023年03月14日 0 点赞 0 评论 401 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数,递归 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int gcd(int m,int n){ if(m%n==0) return n…… 题解列表 2023年03月14日 0 点赞 0 评论 365 浏览 评分:0.0
二维数组的各种转置 摘要:解题思路:见注释注意事项:char str[a][b]要注意,a对应的数值范围是0到(a-1),所以进行其他矩阵变换要(a-1)-i参考代码://a*b的二位数组就是char str[a][b]这种格…… 题解列表 2023年03月15日 0 点赞 0 评论 481 浏览 评分:0.0
几行代码搞定 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int m,x; scanf("%d",&m); x=m*m-m+1; prin…… 题解列表 2023年03月15日 0 点赞 0 评论 447 浏览 评分:0.0
编写题解 1442: 蓝桥杯2013年第四届真题-打印十字图 摘要: 纯暴力破解 找到所有顶点的位置,然后画边 一开始理解错了,n=3时是外包三层,我理解成了两层,所以后面的n换成了(n+1) #include #includ…… 题解列表 2023年03月15日 0 点赞 0 评论 562 浏览 评分:0.0
天干地支python 摘要:解题思路:以2020为标准来判断注意事项:参考代码:n=int(input())t=['jia','yi','bing','ding',…… 题解列表 2023年03月15日 0 点赞 0 评论 515 浏览 评分:0.0