
其它
GoLakerswxy
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C++输入挂
普通输入挂(来自cbc) #include <bits/stdc++.h> using namespace std; template <class T> inline void _cin1(T &ret) //读正整数 (int, long long) { char c; ret = 0; while((c = getchar()...原创 2018-07-24 14:00:53 · 775 阅读 · 2 评论 -
杜教BM
#include <cstdio> #include <cstring> #include <cmath> #include <algorithm> #include <vector> #include <string> #include <map> #include <set> #i原创 2018-08-24 20:11:20 · 472 阅读 · 0 评论 -
codeforces 1011D Rocket(交互题)
基本没写过这种题,平时做题见的很少。 #include <bits/stdc++.h> using namespace std; int p[1010]; int m,n; int main() { scanf("%d%d",&m,&n); int cnt=0; for(int i=0;i<n;++i) { printf("...原创 2018-07-28 21:27:33 · 368 阅读 · 0 评论 -
牛客网多校3 Shuffle Cards(rope)
题目:一个1,2,3.....n的序列,m个操作,每个操作把数组的 L开始往后len长度的串整体移到最前面然后前面的往后移动。 比赛时队友粘了个伸展树模板过了,很纳闷看提交记录别人的代码长度比我们的少10几倍啊!!!wtf??rope好牛逼啊!学一个别人的rope。emmm感觉所有人都知道就我不知道。 #include <bits/stdc++.h> #include<ex...原创 2018-07-26 20:29:09 · 234 阅读 · 0 评论 -
bzoj1269 [AHOI2006]文本编辑器editor(伸展树??rope)
这些日子,可可不和卡卡一起玩了,原来可可正废寝忘食的想做一个简单而高效的文本编辑器。你能帮助他吗?为了明确任务目标,可可对“文本编辑器”做了一个抽象的定义: 文本:由0个或多个字符构成的序列。这些字符的ASCII码在闭区间[32, 126]内,也就是说,这些字符均为可见字符或空格。光标:在一段文本中用于指示位置的标记,可以位于文本的第一个字符之前,文本的最后一个字符之后或文本的某两个相邻字符之...原创 2018-07-26 21:00:15 · 333 阅读 · 0 评论