随笔分类 -  搜索

【IDA*】P2324 [SCOI2005]骑士精神
摘要:1 #include<iostream> 2 #include<cstdio> 3 using namespace std; 4 5 int g[6][6] = 6 { 7 {0,0,0,0,0,0}, 8 {0,1,1,1,1,1}, 9 {0,0,1,1,1,1}, 10 {0,0,0,2,1, 阅读全文
posted @ 2019-10-30 10:30 thjkhdf12 阅读(108) 评论(0) 推荐(0)
【codeforces div3 19/10/23】Books Exchange
摘要:1 #include<iostream> 2 #include<cstring> 3 using namespace std; 4 5 #define mfor(i,a,b) for(register int i=(a);i<=(b);i++) 6 #define mem(a,b) memset(a 阅读全文
posted @ 2019-10-23 13:08 thjkhdf12 阅读(171) 评论(0) 推荐(0)
P2264 情书
摘要:1 #include<iostream> 2 #include<algorithm> 3 #include<string> 4 #include<cstring> 5 using namespace std; 6 7 string t[101]; 8 bool ex[101]; 9 string s 阅读全文
posted @ 2019-10-21 14:54 thjkhdf12 阅读(74) 评论(0) 推荐(0)
P1441 砝码称重
摘要:1 #include <iostream> 2 #include <algorithm> 3 #include <cstring> 4 using namespace std; 5 6 int w[21]; 7 bool f[2010]; 8 bool th[21]; 9 int n, m; 10 阅读全文
posted @ 2019-10-09 13:05 thjkhdf12 阅读(120) 评论(0) 推荐(0)
P1514 引水入城
摘要:1 #include<iostream> 2 #include<algorithm> 3 #include<cstring> 4 #include<fstream> 5 using namespace std; 6 7 int n, m; 8 int h[510][510]; 9 int dx[4] 阅读全文
posted @ 2019-10-09 13:04 thjkhdf12 阅读(94) 评论(0) 推荐(0)
P1378 油滴扩展
摘要:1 #include<iostream> 2 #include<algorithm> 3 #include<cmath> 4 using namespace std; 5 6 bool s[7]; 7 double x[7], y[7], r[7], xa, ya, xb, yb, maxs; 8 阅读全文
posted @ 2019-10-09 13:02 thjkhdf12 阅读(108) 评论(0) 推荐(0)
P1120 小木棍 [数据加强版]
摘要:1 #include<iostream> 2 #include<cstring> 3 #include<algorithm> 4 using namespace std; 5 6 int s[66]; 7 int n; 8 int nextval[66]; 9 int sum; 10 int l; 阅读全文
posted @ 2019-10-09 12:59 thjkhdf12