写题解 1127: C语言训练-尼科彻斯定理 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,b; scanf("%d",&n); printf("%d*%d*%…… 题解列表 2022年03月10日 0 点赞 0 评论 461 浏览 评分:0.0
写题解 1128: C语言训练-排序问题<1> 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int str[4]; for(int i=0;i<4;i++) { scan…… 题解列表 2022年03月10日 0 点赞 0 评论 396 浏览 评分:0.0
做题记录2022.3.10(ac:100%) 摘要:解题思路:我也没有思路,写的题多了,也便有了套路按照代码注释的交换字符就能得到下一个字典序字符串注意事项:参考代码:temp = input().strip() string = list(temp…… 题解列表 2022年03月10日 0 点赞 0 评论 432 浏览 评分:9.9
写题解 1131: C语言训练-斐波纳契数列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n; scanf("%d",&n); int str[40]; str[…… 题解列表 2022年03月10日 0 点赞 0 评论 490 浏览 评分:0.0
模拟回文日期 摘要:代码:#include<iostream> #include<algorithm> using namespace std; int n; bool isLeap(int y) { …… 题解列表 2022年03月10日 0 点赞 1 评论 535 浏览 评分:9.9
1873: 蓝桥杯2017年第八届真题-合根植物-----C++代码 摘要:解题思路:并查集思想: 1.初始化:每个结点的父亲结点首先设为它本身。 2.路径压缩(解决特殊情况下的树的层次深而造成的复杂度增大的问题) …… 题解列表 2022年03月10日 1 点赞 0 评论 547 浏览 评分:9.9
兰顿蚂蚁-简单易懂 摘要:```cpp #include #include using namespace std; int maze[105][105]; struct Ant { int x, y; ch…… 题解列表 2022年03月10日 0 点赞 0 评论 575 浏览 评分:9.9
做题记录2022.3.10(ac:100%) 摘要:解题思路:暴力,但不完全暴力注意事项:参考代码:string = input().strip() length = len(string) max_len = float("-inf") # 参…… 题解列表 2022年03月10日 0 点赞 0 评论 505 浏览 评分:0.0
蛇行矩阵递归解法 摘要:解题思路:设每个数字坐标(x,y),m[x][y]为(x,y)处打印的值,观察下图: 1 3 6 10 15 2 5 9 14 4 8 13 7 12 11 举个例子: 2下面是4,左边…… 题解列表 2022年03月10日 0 点赞 0 评论 542 浏览 评分:0.0
优质题解 递增三元组(C代码) 摘要:看到这道题第一想法肯定是暴力解决,居然暴力也能AC,然后我提交到蓝桥杯官网发现果然没有这么简单,直接运行超时。。。 解题思路:题面上有数字大小的条件(Ai < Bj < Ck),就要联想到排序了;首…… 题解列表 2022年03月10日 1 点赞 1 评论 1302 浏览 评分:9.3