上一页 1 2 3 4 5 6 ··· 13 下一页
摘要: 题目大意: 给你一个n个单词的字典,然后再给你m个前缀,询问在这个字典中,每次我找到的以该前缀的字符串的个数。解题思路: 看着代码一步一步学会的,就是简单的trie的应用。代码:#include#include#include#include#include#includeusing names... 阅读全文
posted @ 2015-09-05 15:33 BYYB_0506 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1. 证明XOR满足交换律,结合律,是自身的逆运算。 比如说,1^0 = 1 1^1 = 0 0^1 = 1 0^0 = 0 1^1^0 = 0 = 1^0^1 = 0. a^b^a=b即一个数异或两次相当于无效2.从N个数中选出两个数,使XOR和最大。解法: 我们知道两个... 阅读全文
posted @ 2015-09-05 13:50 BYYB_0506 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Yet another end of the worldTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 920Accepted Submission... 阅读全文
posted @ 2015-09-03 15:17 BYYB_0506 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 每天一套AK div2 计划开始了。。。A. Bear and Electionstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLimak is... 阅读全文
posted @ 2015-09-03 12:11 BYYB_0506 阅读(220) 评论(0) 推荐(0) 编辑
摘要: OutletsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2594Accepted Submission(s): 1196Problem Des... 阅读全文
posted @ 2015-08-31 01:06 BYYB_0506 阅读(323) 评论(0) 推荐(0) 编辑
摘要: Shoot the AirplaneTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1037Accepted Submission(s): 175P... 阅读全文
posted @ 2015-08-31 00:52 BYYB_0506 阅读(352) 评论(0) 推荐(0) 编辑
摘要: Break the ChocolateTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4556Accepted Submission(s): 145... 阅读全文
posted @ 2015-08-26 00:21 BYYB_0506 阅读(274) 评论(0) 推荐(0) 编辑
摘要: Alice and BobTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1799Accepted Submission(s): 650Proble... 阅读全文
posted @ 2015-08-25 22:22 BYYB_0506 阅读(440) 评论(0) 推荐(0) 编辑
摘要: CowsTime Limit:3000MSMemory Limit:65536KTotal Submissions:14749Accepted:4879DescriptionFarmer John's cows have discovered that the clover growing alon... 阅读全文
posted @ 2015-08-24 23:05 BYYB_0506 阅读(195) 评论(0) 推荐(0) 编辑
摘要: D. Sum of Medianstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn one well-known algorithm of ... 阅读全文
posted @ 2015-08-24 21:09 BYYB_0506 阅读(144) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 13 下一页