Bloxorz I Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 6108 Accepted: 2007 Description Little Tom loves playing games. One day he downlo ...
分类:
其他好文 时间:
2017-08-19 21:14:12
阅读次数:
119
CodeForces E. Lucky Array 幸运数列 Petya loves lucky numbers. Everybody knows that lucky numbers are positive integers whose decimal representation contai ...
分类:
其他好文 时间:
2017-08-19 18:31:03
阅读次数:
209
【HDU 5647】DZY Loves Connecting(树DP) DZY Loves Connecting Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Subm ...
分类:
其他好文 时间:
2017-08-18 22:20:45
阅读次数:
202
给定n个正整数a1,a2,…,an,求 的值(答案模10^9+7)。 Input 第一行一个正整数n。 接下来n行,每行一个正整数,分别为a1,a2,…,an。 Output 仅一行答案。 Sample Input Sample Output Hint 1<=n<=10^5,1<=ai<=10^7。 ...
分类:
编程语言 时间:
2017-08-17 00:36:58
阅读次数:
134
Problem Description ZCC loves playing cards. He has n magical cards and each has a number on it. He wants to choose k cards and place them around in a ...
分类:
其他好文 时间:
2017-08-15 19:47:13
阅读次数:
157
转载请注明出处:http://blog.csdn.net/u012860063?viewmode=contents 题目链接:http://codeforces.com/problemset/problem/445/B 欢迎光临天资小屋:http://user.qzone.qq.com/593830 ...
分类:
其他好文 时间:
2017-08-13 18:39:05
阅读次数:
165
首先dfs,记录每个点第一次被访问到的时间 那么区间LCA其实就是访问最早和访问最晚的点的LCA 找时间最早和最晚用ST表,找LCA用倍增 ...
分类:
其他好文 时间:
2017-08-07 20:30:03
阅读次数:
125
Coach Pang loves his boyfriend Uncle Yang very much. Today is Uncle Yang’s birthday, Coach Pang wants to have a romantic candlelit dinner at Uncle Yan ...
分类:
其他好文 时间:
2017-08-02 23:24:54
阅读次数:
212
pog loves szh II Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 2106 Accepted Submission(s): 60 ...
分类:
其他好文 时间:
2017-08-02 13:15:13
阅读次数:
154
恢复内容开始 The little girl loves the problems on array queries very much. One day she came across a rather well-known problem: you've got an array of n el ...
分类:
其他好文 时间:
2017-07-31 01:10:50
阅读次数:
164