上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: Red and BlackTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11843Accepted Submission(s): 7380Prob... 阅读全文
posted @ 2015-05-07 19:10 BYYB_0506 阅读(177) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#include#includeusing namespace std;const int root=0;int tot;struct node{ int cnt; int next[26]; void newnode... 阅读全文
posted @ 2015-05-02 01:29 BYYB_0506 阅读(201) 评论(0) 推荐(0) 编辑
摘要: // hdu2222 //#include#include#include#include#include#include#includeusing namespace std;char k[55],s[1000005];struct node{ int fail; int next[2... 阅读全文
posted @ 2015-05-02 01:28 BYYB_0506 阅读(113) 评论(0) 推荐(0) 编辑
摘要: // codeforces 471D //#include#include#include#include#include#includeusing namespace std;int n,w;int a[200005],b[200005];int da[200005],db[200005];int... 阅读全文
posted @ 2015-05-02 01:27 BYYB_0506 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Alice and BobTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3046Accepted Submission(s): 995Probl... 阅读全文
posted @ 2015-04-29 00:18 BYYB_0506 阅读(150) 评论(0) 推荐(0) 编辑
摘要: MD,这场月赛知道的时候,只剩下不到一半的时间了,于是在比赛结束前,立马拿下3道签到题,还不算太渣。C - A+BTime Limit:5000ms Memory Limit:65536KBSubmitDescription有一个n个数的序列,每个数都是不同的,从这个序列中选出四个数问有多少个四元... 阅读全文
posted @ 2015-04-28 00:25 BYYB_0506 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1109 - False OrderingPDF (English)StatisticsForumTime Limit:1 second(s)Memory Limit:32 MBWe definebis a Divisor of a numberaifais divisible byb. So, t... 阅读全文
posted @ 2015-04-27 13:23 BYYB_0506 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 题目大意: 这题的意思就是说,给两个字符串,一个字符串中的数字是用10进制表示的,一个字符串的数字是用2进制表示的,看看十进制和二进制是否对应。解题思路: 处理在'.'上。。。。代码: 1 # include 2 # include 3 # include 4 # include 5 6 us... 阅读全文
posted @ 2015-04-26 17:32 BYYB_0506 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1085 - All Possible Increasing SubsequencesPDF (English)StatisticsForumTime Limit:3 second(s)Memory Limit:64 MBAn increasing subsequence from a sequen... 阅读全文
posted @ 2015-04-26 01:01 BYYB_0506 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 题目大意: 就是说,给你一个序列,然后让你求出这个序列有多少个逆序对,所谓逆序对就是对于这个序列中的元素有a[i]>a[j] 且i 时间复杂度还是O(NlogN).最后总的还是O(NlogN).代码: 1 # include 2 # include 3 # include 4 # includ... 阅读全文
posted @ 2015-04-26 00:16 BYYB_0506 阅读(187) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页