Switch打表-直接暴力 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;import static java.lang.System.exit;public class Main { p…… 题解列表 2023年03月14日 0 点赞 1 评论 267 浏览 评分: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 评论 338 浏览 评分:0.0
蓝桥杯专题系列-1541(Python) 摘要:解题思路:内置math函数gcd()求最大公约数,但本题其实考察的是数的拆分注意事项:不要傻傻的用函数自己调用自己参考代码:Python暴力解法:import mathcnt = 0n = int(i…… 题解列表 2023年03月14日 0 点赞 0 评论 290 浏览 评分: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 评论 246 浏览 评分:0.0
二维数组的各种转置 摘要:解题思路:见注释注意事项:char str[a][b]要注意,a对应的数值范围是0到(a-1),所以进行其他矩阵变换要(a-1)-i参考代码://a*b的二位数组就是char str[a][b]这种格…… 题解列表 2023年03月15日 0 点赞 0 评论 287 浏览 评分: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 评论 341 浏览 评分:0.0
编写题解 1442: 蓝桥杯2013年第四届真题-打印十字图 摘要: 纯暴力破解 找到所有顶点的位置,然后画边 一开始理解错了,n=3时是外包三层,我理解成了两层,所以后面的n换成了(n+1) #include #includ…… 题解列表 2023年03月15日 0 点赞 0 评论 455 浏览 评分:0.0
天干地支python 摘要:解题思路:以2020为标准来判断注意事项:参考代码:n=int(input())t=['jia','yi','bing','ding',…… 题解列表 2023年03月15日 0 点赞 0 评论 396 浏览 评分:0.0
分考场—深度优先搜索 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; #define inf 0x3f3f3f3f //定义一个最…… 题解列表 2023年03月15日 0 点赞 0 评论 361 浏览 评分:0.0
字符串分类统计--个人题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { string str; getline(c…… 题解列表 2023年03月15日 0 点赞 0 评论 282 浏览 评分:0.0