做题记录2022.3.10(ac:100%) 摘要:解题思路:暴力,但不完全暴力注意事项:参考代码:string = input().strip() length = len(string) max_len = float("-inf") # 参…… 题解列表 2022年03月10日 0 点赞 0 评论 516 浏览 评分:0.0
兰顿蚂蚁-简单易懂 摘要:```cpp #include #include using namespace std; int maze[105][105]; struct Ant { int x, y; ch…… 题解列表 2022年03月10日 0 点赞 0 评论 579 浏览 评分:9.9
1873: 蓝桥杯2017年第八届真题-合根植物-----C++代码 摘要:解题思路:并查集思想: 1.初始化:每个结点的父亲结点首先设为它本身。 2.路径压缩(解决特殊情况下的树的层次深而造成的复杂度增大的问题) …… 题解列表 2022年03月10日 1 点赞 0 评论 553 浏览 评分:9.9
模拟回文日期 摘要:代码:#include<iostream> #include<algorithm> using namespace std; int n; bool isLeap(int y) { …… 题解列表 2022年03月10日 0 点赞 1 评论 543 浏览 评分: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 评论 498 浏览 评分:0.0
做题记录2022.3.10(ac:100%) 摘要:解题思路:我也没有思路,写的题多了,也便有了套路按照代码注释的交换字符就能得到下一个字典序字符串注意事项:参考代码:temp = input().strip() string = list(temp…… 题解列表 2022年03月10日 0 点赞 0 评论 442 浏览 评分:9.9
写题解 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 评论 401 浏览 评分:0.0
写题解 1127: C语言训练-尼科彻斯定理 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,b; scanf("%d",&n); printf("%d*%d*%…… 题解列表 2022年03月10日 0 点赞 0 评论 465 浏览 评分:0.0
1431: 蓝桥杯2014年第五届真题-分糖果 摘要:解题思路:注意事项:参考代码:n = eval(input()) l = list(map(int, input().split())) s = 0 while True: for i…… 题解列表 2022年03月10日 0 点赞 0 评论 373 浏览 评分:0.0
数组排序(垃圾题目,这都能花了我两个小时) 摘要:解题思路: 垃圾题目,这都能花了我两个小时注意事项:参考代码:#include<stdio.h>int main(){ int flag=1,a[10000],t,n,…… 题解列表 2022年03月10日 0 点赞 0 评论 646 浏览 评分:5.0