ujn20161222的博客

life is like a box of chocolates you never know what you re gonna get

排序:
默认
按更新时间
按访问量

A * B Problem Plus+fft模板

#define happy#include<bits/stdc++.h>using namespace std;typedef long long ll;typedef long double ld;typedef pair<int...

2018-06-01 19:28:00

阅读数:29

评论数:0

Just h-index+莫队+二分+树状数组

Just h-indexTime Limit: 6000/3000 MS (Java/Others)    Memory Limit: 132768/132768 K (Java/Others)Total Submission(s): 232    Accepted Submission(s): ...

2018-06-01 16:51:39

阅读数:73

评论数:0

Higher h-index+CCPC2018-湖南全国邀请赛

当(n+a)/2为偶数时,此数最小Higher h-indexTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 152    Accepte...

2018-06-01 11:11:34

阅读数:54

评论数:0

Vertex Cover + CCPC2018-湖南全国邀请赛

Alice and Bobo are playing a game on a graph with n vertices numbered with 0,1,…,(n−1). The vertex numbered with i is associated with weight 2i. Th...

2018-06-01 10:38:31

阅读数:102

评论数:0

String Transformation + CCPC2018-湖南全国邀请赛

Bobo has a string S=s1s2…sn consists of letter `a`, `b` and `c`. He can transform the string by inserting or deleting substrings `aa`, `bb` and `aba...

2018-06-01 10:36:37

阅读数:25

评论数:0

F. Minimal k-covering+最大流

F. Minimal k-coveringtime limit per test1.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a ...

2018-05-31 13:10:36

阅读数:18

评论数:0

Thief in a Shop+dp计数

Thief in a Shoptime limit per test5 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputA thief made his way to a shop.A...

2018-05-30 11:24:16

阅读数:11

评论数:0

C. AND Graph+dfs

每次dfs尝试所有可能相连的状态C. AND Graphtime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a set...

2018-05-30 10:38:02

阅读数:29

评论数:0

B. Petr and Permutations+数学

分组有n个元素的组需要交换n-1次这样n-cyc就是最少的交换次数petr与n奇偶一致,这样判断n与最少次数是否一致B. Petr and Permutationstime limit per test2 secondsmemory limit per test256 megabytesinput...

2018-05-30 09:57:44

阅读数:72

评论数:0

A. Fair+bfs

把各种颜色到每个点的距离算出来d[j]记录所有颜色到这一个点的距离然后取前s个A. Fairtime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputS...

2018-05-30 09:01:40

阅读数:41

评论数:0

B. High School: Become Human+取log

B. High School: Become Humantime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYear 2118. Androids ...

2018-05-30 08:26:38

阅读数:24

评论数:0

B2. Maximum Control (medium)+树的直径+思维

B2. Maximum Control (medium)time limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe Resista...

2018-05-29 21:58:23

阅读数:88

评论数:0

typename...

https://msdn.microsoft.com/zh-cn/library/dn439779.aspx #include <iostream> using namespace std; void print() { ...

2018-05-29 19:53:06

阅读数:15

评论数:0

C3. Encryption (hard)+dp

C3. Encryption (hard)time limit per test2.2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputHeidi is now jus...

2018-05-29 17:45:45

阅读数:20

评论数:0

Avito Code Challenge 2018+F. Round Marriage +二分+构造

这里用两倍长度才会出现下标上的m_diffF. Round Marriagetime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt's marr...

2018-05-28 20:59:42

阅读数:28

评论数:0

E. Addition on Segments+Avito Code Challenge 2018 树分治

E. Addition on Segmentstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputGrisha come to a contest...

2018-05-28 19:19:49

阅读数:18

评论数:0

D. Bookshelves+Avito Code Challenge 2018+数位

D. Bookshelvestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMr Keks is a typical white-collar ...

2018-05-28 13:35:57

阅读数:21

评论数:0

Maximum Clique+最大团

Given a graph G(V, E), a clique is a sub-graph g(v, e), so that for all vertex pairs v1, v2 in v, there exists an edge (v1, v2) in e. Maximum cliqu...

2018-05-24 19:11:44

阅读数:38

评论数:1

contest985F. Isomorphic Strings+二重哈希+幂次方构造

F. Isomorphic Stringstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a string s o...

2018-05-24 09:26:41

阅读数:37

评论数:0

Bone Collector 分支限界

Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as dog’s , co...

2018-05-23 19:32:19

阅读数:24

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭