编写题解 1044: [编程入门]三个字符串的排序 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #include <string.h> int compare(const voi…… 题解列表 2023年04月07日 0 点赞 0 评论 483 浏览 评分:0.0
矩阵的对角线之和 摘要:解题思路:注意事项:参考代码:dp = [list(map(int,input().split()))for i in range(5)]a = b = 0for i in range(5): …… 题解列表 2023年04月07日 0 点赞 0 评论 544 浏览 评分:0.0
蓝桥杯2020年第十一届省赛真题-字符串编码 摘要:参考代码:#include <iostream>#include <string>using namespace std;int main(){ string s; cin >> s; …… 题解列表 2023年04月07日 0 点赞 0 评论 434 浏览 评分:0.0
杨辉三角——python 摘要:解题思路:注意事项:参考代码:n,m = map(int,input().split())L = [[1],[1,1]]for i in range(1,n): a = L[i] b = …… 题解列表 2023年04月07日 0 点赞 0 评论 472 浏览 评分:0.0
傻瓜满分解法 摘要:解题思路:高级版的暴力,避免了大for导致超时,做题时务必认真,不要漏写条件。参考代码:#include<bits/stdc++.h>using namespace std;int main(){ l…… 题解列表 2023年04月07日 0 点赞 0 评论 457 浏览 评分:0.0
题解 2853: 字符替换 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<string>int main(){ string a; cin >> a;…… 题解列表 2023年04月07日 0 点赞 0 评论 396 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-GCD 摘要:解题思路:a<b时,g(a,b)=g(a,b-a);所以g(a+k,b+k)=g(a+k,b+k-(a+k))=g(a+k,b-a); c=b-a是已知的,只需要找到(a+k)%c==0;相当于a%c…… 题解列表 2023年04月07日 0 点赞 0 评论 923 浏览 评分:0.0
直接用set解决。。。。。。。。。。。。 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ set<int> a; int n; cin>>n; whi…… 题解列表 2023年04月07日 0 点赞 0 评论 389 浏览 评分:0.0
城市路(Dijkstra) 摘要:解题思路:注意事项:参考代码:import heapqN=100010e=[0]*Nne=[0]*Nw=[0]*Nh=[-1]*Nindex=0st=[False]*Ndef add(a,b,c): …… 题解列表 2023年04月07日 0 点赞 0 评论 457 浏览 评分:0.0
混合背包之只有多重背包 摘要:解题思路:无限==有限,资源是无穷的,背包是有限的注意事项:就是多重背包问题参考代码:#include<iostream> #include<cmath> #include<algorithm> …… 题解列表 2023年04月07日 0 点赞 0 评论 370 浏览 评分:0.0