[置顶] 新博客

摘要: www.xiekeyi98.com。 加个自己友链,方便SEO23333. 以后可能更多的内容主要在上面写了。 现在的这个博客废话内容、凑数的东西等低质量内容太多了。 以后会考虑在新博客上尽量维持高质量,大篇幅。 不过说实话,博客园的排版等真的很方便。 自己博客很多时候挺难用的。 最喜欢博客园的代码 阅读全文

posted @ 2017-11-29 18:01 Dark猫 阅读(123) 评论(0) 推荐(0)

2017年7月13日

USACO Chapter 2 Section 2.1

摘要: 准备期末考试 停了一个月……现在开始继续刷 1 /* 2 ID:xiekeyi1 3 PROG:castle 4 LANG:C++ 5 */ 6 #include<bits/stdc++.h> 7 using namespace std ; 8 const int maxn = 55; 9 10 i 阅读全文

posted @ 2017-07-13 10:08 Dark猫 阅读(153) 评论(0) 推荐(0)

2017年5月11日

关于DFS的一点总结

摘要: 今天在刷 USACO 2.1 PROB Healthy Holsteins 这题需要以这种方式搜索 1 ~ n 以n = 4 为例: 搜索顺序为: (1),(2),(3),(4), (1,2),(1,3),(1,4) ,(2,3),(2,4),(3,4) (1,2,3),(1,2,4) , (1,3 阅读全文

posted @ 2017-05-11 22:25 Dark猫 阅读(278) 评论(0) 推荐(0)

2017年5月4日

USACO Chapter 1 Section 1.5

摘要: 1 /* 2 ID:xiekeyi1 3 PROG:numtri 4 LANG:C++ 5 */ 6 #include<bits/stdc++.h> 7 using namespace std ; 8 const int maxn = 1000 + 10 ; 9 // ´ÓÉÏÍùÏÂ 10 int 阅读全文

posted @ 2017-05-04 23:11 Dark猫 阅读(125) 评论(0) 推荐(0)

2017年4月27日

USACO Chapter 1 Section 1.4

摘要: 1 /* 2 ID:xiekeyi1 3 PROG:ariprog 4 LANG:C++ 5 */ 6 #include<bits/stdc++.h> 7 using namespace std ; 8 const int maxn = 250 * 250 * 2 ; 9 bool a[maxn + 阅读全文

posted @ 2017-04-27 22:53 Dark猫 阅读(108) 评论(0) 推荐(0)

2017年4月25日

USACO Chapter 1 Section 1.3

摘要: 1 /* 2 ID:xiekeyi1 3 PROG:milk 4 LANG:C++ 5 */ 6 7 #include<bits/stdc++.h> 8 using namespace std ; 9 10 const int maxm = 5050 ; 11 12 struct P 13 { 14 阅读全文

posted @ 2017-04-25 22:06 Dark猫 阅读(190) 评论(0) 推荐(0)

2017年4月17日

USACO Chapter 1 Section 1.2

摘要: 不知道为什么感觉1.2比1.1反而简单不少 1 /* 2 ID:xiekeyi1 3 PROG:milk2 4 LANG:C++ 5 */ 6 #include<bits/stdc++.h> 7 using namespace std ; 8 const int MAXN = 5010; 9 str 阅读全文

posted @ 2017-04-17 23:37 Dark猫 阅读(164) 评论(0) 推荐(0)

Codeforces Round #409 (rated, Div. 2, based on VK Cup 2017 Round 2)

摘要: A. Vicious Keyboard time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Tonio has a keyboard 阅读全文

posted @ 2017-04-17 19:04 Dark猫 阅读(233) 评论(0) 推荐(0)

2017年4月12日

USACO Chapter 1 Section 1.1

摘要: USACO的题解和翻译已经很多了。。。 我只是把自己刷的代码保存一下。 1、PROB Your Ride Is Here 1 /* 2 ID:xiekeyi1 3 PROG:ride 4 LANG:C++ 5 */ 6 7 #include<bits/stdc++.h> 8 using namesp 阅读全文

posted @ 2017-04-12 22:12 Dark猫 阅读(235) 评论(0) 推荐(0)

2017年4月5日

欧拉筛

摘要: #include<bits/stdc++.h> using namespace std ; const int maxn = 1000000 ; bool isprime[maxn]; int prime[maxn]; int init() { int cntprime = 1 ; for( int 阅读全文

posted @ 2017-04-05 20:56 Dark猫 阅读(265) 评论(0) 推荐(0)

导航