两种解法(sort和快速排序) 摘要:解题思路:第一种是利用c++内置函数sort,第二种是利用快速排序.(建议掌握第二种)注意事项:参考代码:第一种:第二种:#include<bits/stdc++.h> using namespac…… 题解列表 2022年11月04日 0 点赞 0 评论 337 浏览 评分:0.0
题解 2906: 笨小猴 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int ZS(int n){ if(n<2) return 0; …… 题解列表 2022年11月04日 0 点赞 0 评论 342 浏览 评分:0.0
解决python代码 EOFERROR 摘要:解题思路:注意事项:参考代码:n=int(input())a=[]b=Truewhile b: try: x=input() if x!='': …… 题解列表 2022年11月04日 0 点赞 0 评论 623 浏览 评分:8.0
2908: 白细胞计数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int n; float num=0; …… 题解列表 2022年11月04日 0 点赞 0 评论 754 浏览 评分:6.4
C++求一个闭区间内所有素数和 摘要:解题思路:注意事项:注意1不是素数,在判断是要注意参考代码:#include<iostream>using namespace std;bool check(int i)////用来检验一个数是否是素…… 题解列表 2022年11月04日 0 点赞 0 评论 369 浏览 评分:9.9
编写题解 1206: 字符串问题(最短) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string a;//定义 cin>>a;//输出 …… 题解列表 2022年11月04日 0 点赞 0 评论 385 浏览 评分:0.0
1828: 蓝桥杯2015年第六届真题-密文搜索暴力搜索 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;char s[20000];bool fx(char* s1, char* s2) …… 题解列表 2022年11月04日 0 点赞 0 评论 452 浏览 评分:9.9
判断是否为两位数 摘要:解题思路:注意事项:输入的数值大于0参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a/100<1) p…… 题解列表 2022年11月04日 0 点赞 0 评论 399 浏览 评分:0.0
无语数据结构-广义表的基本操作 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <stack>using namespace std;int main(){ stack<char> s; …… 题解列表 2022年11月04日 0 点赞 0 评论 411 浏览 评分:9.9
蓝桥杯2020年第十一届省赛真题-平面切分 蓝桥杯加油!!! 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=1005;set<pair<int,int>> line;i…… 题解列表 2022年11月04日 0 点赞 0 评论 483 浏览 评分:9.9