上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 50 下一页
摘要: problemsolution//如果n为奇数,走满所有格须移动偶数次,n为偶数的话奇数次,然后少到一格少移动两次,奇偶性不改变,所以即可判断胜负。codes#includeusing namespace std;int main(){ int n; wh... 阅读全文
posted @ 2018-05-27 21:30 gwj1139177410 阅读(74) 评论(0) 推荐(0) 编辑
摘要: problemsolutioncodes#include#include#include#include#includeusing namespace std;const int dx[] = {0,0,-1,1};const int dy[] = {1,-1,0,0... 阅读全文
posted @ 2018-05-27 21:23 gwj1139177410 阅读(122) 评论(0) 推荐(0) 编辑
摘要: problemsolutioncodes//标程Dijkstra#include#include#includeusing namespace std;//Tint n = 60, m, vis[1010];//Graphstruct Edge{ int v, ... 阅读全文
posted @ 2018-05-27 21:21 gwj1139177410 阅读(118) 评论(0) 推荐(0) 编辑
摘要: problemsolutioncodes//并查集模板#includeusing namespace std;int fa[5010];void init(int n){for(int i = 1; i >n>>m>>p; init(n); for(int... 阅读全文
posted @ 2018-05-27 20:45 gwj1139177410 阅读(97) 评论(0) 推荐(0) 编辑
摘要: problemsolutioncodes/*用f[x][0],f[x][1] 分别表示x没去和去了的最大价值。f[x][0] = sigmar:max(f[y][0],f[y][1]);f[x][1] = sigmar:f[y][0];*/#include#inclu... 阅读全文
posted @ 2018-05-27 20:43 gwj1139177410 阅读(110) 评论(0) 推荐(0) 编辑
摘要: problemsolutioncodes//f[i,j]表示用j秒回到i最多拿几幅画//链式建树#include#includeusing namespace std;const int maxn = 1010;int tot, n(1), f[maxn][maxn]... 阅读全文
posted @ 2018-05-27 20:41 gwj1139177410 阅读(139) 评论(0) 推荐(0) 编辑
摘要: problemn条直线,没有任意三条及以上直线相交于同一点。求从下往上第k层(具体见原题)最少能被划分成多少条线段。solutionn条边两两相交可以截出n^2段线段(自己画画就出来了QAQ) 所以对于每一层,有如下规律: 当k = 1时,线段数sum=n; 当k>=... 阅读全文
posted @ 2018-05-27 12:43 gwj1139177410 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 文本是为了更好的使用搜索引擎而写的。据说没有搜索引擎可以一次抓取到全网16%以上的网页并排名。0x01 使用Google找学术资料的化,真的用Google吧,不是信仰上说说的,在很多细节上,完全是百度不可以替代的。很多东西百度根本就搜不到,特别是用英文搜的时候,可... 阅读全文
posted @ 2018-05-27 12:21 gwj1139177410 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 前言:快捷键拯救世界突然发现,学着去背一些快捷键好好用啊。。就跟你学习是一个道理的样子,背的时候体现不出来,但是一但到了需要用到它的时候,要知道,这种东西,可是每天都在无数次的使用啊,,鼠标找半天和脑回路寻址的速度,那简直。。。太常规的就不写了,大家都知道,,主要留一... 阅读全文
posted @ 2018-05-27 12:07 gwj1139177410 阅读(161) 评论(0) 推荐(0) 编辑
摘要: problemsolutioncodes//just for test2#include#includeusing namespace std;const int inf = 0xfffffff;int n, m, sx, ed, _max=inf, _min=1;i... 阅读全文
posted @ 2018-05-26 22:16 gwj1139177410 阅读(112) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 50 下一页
选择