上一页 1 2 3 4 5 6 ··· 29 下一页
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N = 200010; 4 typedef long long ll; 5 struct seq { 6 int s, e, d; 7 } seqs[N]; 8 int n; 阅读全文
posted @ 2020-11-20 10:11 kyk333 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N = 200010; 4 double INF = 1e10; 5 struct Point { 6 double x, y; 7 bool type; 8 } points 阅读全文
posted @ 2020-11-18 20:23 kyk333 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N = 800; 4 char g[N][N]; 5 int mul(int n) { 6 int res = 1; 7 for (int i = 1; i <= n; i++ 阅读全文
posted @ 2020-11-18 10:35 kyk333 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N = 14; 4 vector<int> cards[N]; //1~13,vector存储初始正面朝下着的牌的情况 5 int open[N]; //正面朝上只需要存储每一 阅读全文
posted @ 2020-11-18 10:33 kyk333 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 之前做过这道题目,详解https://www.cnblogs.com/fx1998/p/12785188.html 方法一:暴力枚举 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N = 5; 4 char g[N][N] 阅读全文
posted @ 2020-11-17 10:40 kyk333 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N = 1010; 4 int n, root; 5 struct Node { 6 int p, s, v; 7 double avg; 8 //p是该节点的父节点 9 // 阅读全文
posted @ 2020-11-16 14:54 kyk333 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N = 1010; 4 int n; 5 typedef pair<int, int> PII; 6 PII ps[N]; //peoples 7 vector<int> mu 阅读全文
posted @ 2020-11-15 20:55 kyk333 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N = 1010; 4 const double eps = 1e-6, INF = 1e10; 5 //eps用于精度判断 6 typedef pair<double, do 阅读全文
posted @ 2020-11-15 19:57 kyk333 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef pair<int, int> PII; 4 const int N = 50010; 5 pair<PII, int> cows[N]; 6 //首先存储开始时间和结束时间,然后存 阅读全文
posted @ 2020-11-15 18:53 kyk333 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N = 2510; 4 typedef pair<int, int> PII; 5 PII a[N]; //牛的min和max 6 int main() { 7 int c, 阅读全文
posted @ 2020-11-15 15:50 kyk333 阅读(99) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 29 下一页