Problem Description Who is Dylans?You can find his ID in UOJ and Codeforces. His another ID is s1451900 in BestCoder.And now today's problems are all ...
分类:
其他好文 时间:
2016-07-19 23:31:33
阅读次数:
335
传送门
Amr loves Chemistry, and specially doing experiments. He is preparing for a new interesting experiment.Amr has n different types of chemicals. Each chemical i has an initial volume of ai liters. F...
分类:
其他好文 时间:
2016-07-15 20:54:01
阅读次数:
467
D. Dima and Lisa D. Dima and Lisa Dima loves representing an odd number as the sum of multiple primes, and Lisa loves it when there are at most three ...
分类:
其他好文 时间:
2016-07-12 21:29:38
阅读次数:
193
Description Pari has a friend who loves palindrome numbers. A palindrome number is a number that reads the same forward or backward. For example 12321 ...
分类:
其他好文 时间:
2016-07-09 16:24:37
阅读次数:
137
CA Loves GCD Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Problem Description CA is a fine comrade who loves the ...
分类:
其他好文 时间:
2016-07-02 19:00:41
阅读次数:
182
1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cmath> 5 #include <algorithm> 6 using namespace std; 7 #define PI pair<int, ...
分类:
其他好文 时间:
2016-06-20 22:09:54
阅读次数:
228
题目链接: Array Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Problem Description Vicky is a magician who loves math. ...
分类:
其他好文 时间:
2016-06-17 23:47:43
阅读次数:
216
对于每个点维护两棵线段树$T1[x],T2[x]$: $T1[x]$维护$x$子树内,深度在$[l,r]$内的点数,同种颜色有多个的话,保留深度最小的那个。 $T2[x]$维护$x$子树内每种颜色的最小深度。 从底向上合并线段树,先合并$T1$,然后合并$T2$的时候,发现有重复点,那么在$T1$里 ...
分类:
其他好文 时间:
2016-05-29 06:23:14
阅读次数:
293
ztr loves math Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 896 Accepted Submission(s): 347 Pr ...
分类:
其他好文 时间:
2016-05-19 23:21:39
阅读次数:
187
最短路+拆点 A As long as Binbin loves Sangsang 题意:从1走到n,每次都是LOVE,问到n时路径是连续多个"LOVE"的最短距离.秀恩爱不想吐槽. 分析:在普通的最短路上有寻路的限制,把一个点看成4个点,表示通过某一个字符到该点的最短距离. ...
分类:
其他好文 时间:
2016-05-19 18:59:05
阅读次数:
135