上一页 1 2 3 4 5 6 7 ··· 17 下一页
摘要: 题目链接:http://oj.tfls.net/p/86 注意题目中数据范围,考虑数组存放和比较值为什么,三种简单排序都可以尝试 方法一:普通冒泡排序 #include<bits/stdc++.h> using namespace std; int a[105]; int x, y; int fz( 阅读全文
posted @ 2022-05-26 17:51 TFLSNOI 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 选择、冒泡、插入排序: 知识链接:https://oi-wiki.org/basic/selection-sort/ 算法模拟:https://visualgo.net/zh 代码实现: #include<bits/stdc++.h> using namespace std; void Select 阅读全文
posted @ 2022-05-13 20:49 TFLSNOI 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://vjudge.net/problem/HDU-2087 居然WA #include<cstdio> #include<cstring> #include<cmath> #include<algorithm> using namespace std; int nxt[1010 阅读全文
posted @ 2022-05-05 23:19 TFLSNOI 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://www.luogu.com.cn/problem/P3375 方法一:BF片段 1 int BF(string s,string t,int pos){ 2 int i=pos,j=0,sum=0; 3 int slen=s.length(); 4 int tlen=t.l 阅读全文
posted @ 2022-05-03 16:39 TFLSNOI 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://vjudge.net/problem/POJ-3630#author=Xiaomostream 1 #include<cstdio> 2 #include<cstring> 3 #include<cmath> 4 #include<algorithm> 5 using na 阅读全文
posted @ 2022-05-01 18:02 TFLSNOI 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://vjudge.net/problem/POJ-2503#author=koeikai 本题输入方式学习 方法一:MAP 1 #include<cstdio> 2 #include<iostream> 3 #include<map> 4 #include<cstring> 5 阅读全文
posted @ 2022-05-01 16:25 TFLSNOI 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://www.luogu.com.cn/problem/P8306 逻辑清楚,样例通过,提交RE,实在找不出 1 #include<cstdio> 2 #include<cstring> 3 #include<cmath> 4 #include<algorithm> 5 usin 阅读全文
posted @ 2022-04-29 23:29 TFLSNOI 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://www.luogu.com.cn/problem/P3387 写了很久没写出来,参考下面链接吧 题解:https://blog.csdn.net/acmmmm/article/details/16361033 阅读全文
posted @ 2022-04-28 22:54 TFLSNOI 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://vjudge.net/problem/POJ-3352 1 #include<cstdio> 2 #include<cstring> 3 #include<cmath> 4 #include<algorithm> 5 using namespace std; 6 const 阅读全文
posted @ 2022-04-27 21:48 TFLSNOI 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://www.luogu.com.cn/problem/P3388 1 #include<cstdio> 2 #include<cstring> 3 #include<cmath> 4 #include<algorithm> 5 using namespace std; 6 co 阅读全文
posted @ 2022-04-24 23:12 TFLSNOI 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://vjudge.net/problem/HDU-4417#author=634579757 很经典的分块模版题,出错的都是细节问题,考查学生的码力 1 #include<cstdio> 2 #include<cstring> 3 #include<cmath> 4 #incl 阅读全文
posted @ 2022-04-23 18:20 TFLSNOI 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 链接:http://poj.org/problem?id=3468 难度不大,注意细节 1 #include<cstdio> //分块,poj3468 2 #include<algorithm> 3 #include<cmath> 4 #define ll long long 5 #define N 阅读全文
posted @ 2022-04-22 10:51 TFLSNOI 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://www.luogu.com.cn/problem/P1168 题目太经典,题解很妙。 我就写个40分的代码吧,暂且把它归到优先队列 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn=1e5+1 阅读全文
posted @ 2022-04-21 22:37 TFLSNOI 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://poj.org/problem?id=1986 1 #include<cstdio> 2 #include<cstring> 3 #include<algorithm> 4 using namespace std; 5 const int maxn=40010; 6 int 阅读全文
posted @ 2022-04-20 18:20 TFLSNOI 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://acm.hdu.edu.cn/showproblem.php?pid=2586 1 #include<cstdio> 2 #include<cstring> 3 #include<algorithm> 4 using namespace std; 5 int t; 6 in 阅读全文
posted @ 2022-04-20 15:35 TFLSNOI 阅读(72) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 17 下一页