这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《蜜汁RE求助》回复:
您这是不是分块有问题……\ 你的ans2跑出来会有一些地方是0的,对应的ans1也是0,估计那个区间被你排序飞了没扫到所以这两个地方都没修改过?
一开始wa了好几次,结果发现原来是check数组没有每次清空…… 按理来讲应该wa一大片的吧,结果这都能有91分? ```cpp #include #include #include using namespace std; int n,m; int head[101],total; struct E { int to…
在讨论《一个快速【输出】送给TLE的人们》回复:
楼上各位都是红名dalao,掌握十万种读入输出方式%%%
.. 86 61 97 42 39 60 53 8 57 89 87 38 53 30 21 34 86 56 53 93 37 #10 10 92 66 11 40 64 59 96 61 13 31 43 99 41 22 45 43 52 93 73 97 88 94 .. 真是卡了我一个下午……
··· ```cpp #include #include #include using namespace std; int N, M, a[100010], f[100010][20]; //定义f[i][j]为i到i+2^j-1区间的最大值 void prepar() { for (int i = 1; i > N…