摘要: bryce1010模板 http://codeforces.com/gym/101810#include using namespace std;#define ll long longconst int MAXN=1010;int a[MAXN>t; int ... 阅读全文
posted @ 2018-07-29 15:52 Bryce1010 阅读(182) 评论(0) 推荐(0) 编辑
摘要: bryce1010模板 http://codeforces.com/gym/101810#includeusing namespace std;#define ll long longll a[1000005];int main(){ int t,n,temp;... 阅读全文
posted @ 2018-07-29 15:51 Bryce1010 阅读(100) 评论(0) 推荐(0) 编辑
摘要: bryce1010模板 http://codeforces.com/gym/101810#includeusing namespace std;#define ll long long const ll maxn = 1e5 + 5;const ll mod = 1e... 阅读全文
posted @ 2018-07-29 15:50 Bryce1010 阅读(192) 评论(0) 推荐(0) 编辑
摘要: bryce1010模板 http://codeforces.com/gym/101810#include using namespace std;#define ll long longint main(){ int t; scanf("%d",&t);... 阅读全文
posted @ 2018-07-29 15:49 Bryce1010 阅读(127) 评论(0) 推荐(0) 编辑
摘要: bryce1010模板 http://codeforces.com/gym/101810#include using namespace std;#define ll long longll lowbit(ll x){ return x&(-x);}int m... 阅读全文
posted @ 2018-07-29 15:48 Bryce1010 阅读(123) 评论(0) 推荐(0) 编辑
摘要: bryce1010模板 http://codeforces.com/gym/101810#include using namespace std;#define ll long longint main() { int T; cin >> T; wh... 阅读全文
posted @ 2018-07-29 15:40 Bryce1010 阅读(131) 评论(0) 推荐(0) 编辑
摘要: bryce1010模板 http://codeforces.com/gym/101810/problem/A 大模拟,写崩了,代码借队友的。。。。。。注意处理段与段的连接问题:#includeusing namespace std;const int maxn=1e5... 阅读全文
posted @ 2018-07-29 15:39 Bryce1010 阅读(200) 评论(0) 推荐(0) 编辑
摘要: bryce1010模板http://acm.hdu.edu.cn/showproblem.php?pid=2586#includeusing namespace std;#define ll long longconst int MAXN=40010;const in... 阅读全文
posted @ 2018-07-29 13:47 Bryce1010 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1、Targan算法(离线)http://poj.org/problem?id=1470/*伪代码Tarjan(u)//marge和find为并查集合并函数和查找函数{ for each(u,v) //访问所有u子节点v { Tarja... 阅读全文
posted @ 2018-07-29 11:49 Bryce1010 阅读(202) 评论(0) 推荐(0) 编辑
摘要: bryce1010模板 http://poj.org/problem?id=1470/*伪代码Tarjan(u)//marge和find为并查集合并函数和查找函数{ for each(u,v) //访问所有u子节点v { Tarjan(... 阅读全文
posted @ 2018-07-29 11:48 Bryce1010 阅读(162) 评论(0) 推荐(0) 编辑