hdu5269 ZYB loves Xor I 异或,字典树ZYB loves Xor IAccepts: 142Submissions: 696Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Othe....
分类:
其他好文 时间:
2015-11-05 00:30:50
阅读次数:
172
C. Dreamoon and SumsDreamoon loves summing up something for no reason. One day he obtains two integersaandboccasionally. He wants to calculate the sum...
分类:
其他好文 时间:
2015-11-02 17:12:14
阅读次数:
234
A schoolboy named Vasya loves reading books on programming and mathematics. He has recently read an encyclopedia article that described the method ofm...
分类:
其他好文 时间:
2015-10-27 17:22:07
阅读次数:
174
C. Median SmoothingA schoolboy named Vasya loves reading books on programming and mathematics. He has recently read an encyclopedia article that descr...
分类:
其他好文 时间:
2015-10-26 18:33:44
阅读次数:
198
原题链接:http://codeforces.com/problemset/problem/446/A题意:给一个长度为n的序列,最多可以修改一个位置的数,求最长连续上升子序列。题解:当a[i+1] > a[i-1]+2的时候,可以通过改变a[i]的值来使前后两段合并,反之,分别考虑a[i]作为左边...
分类:
其他好文 时间:
2015-10-23 22:53:41
阅读次数:
201
题目背景Soha的出题效率着实让人大吃一惊。OI,数学,化学的题目都出好了,物理的题还没有一道。于是,Huntfire,absi2011,lanlan对soha进行轮番炸,准备炸到soha出来,不料,人群中冲出了个kkksc03……题目描述yyy loves OI(Huntfire),yyy lov...
分类:
其他好文 时间:
2015-10-17 10:32:59
阅读次数:
248
Petya loves lucky numbers. We all know that lucky numbers are the positive integers whose decimal representations contain only the lucky digits4and7. ...
分类:
其他好文 时间:
2015-10-14 19:54:18
阅读次数:
183
分治法和字典树都可以,都是递归,但字典树耗内存 从第一bit开始,若相同则xor为0,分到同一部分,不相同则统计,且此时lowbit为这一bit,最后结果要乘以2 1 /*分治法*/ 2 #include 3 #define MOD 998244353 4 5 using namespac...
分类:
其他好文 时间:
2015-10-13 20:58:53
阅读次数:
167
C. Marina and VasyaMarina loves strings of the same length and Vasya loves when there is a third string, different from the...
分类:
其他好文 时间:
2015-10-08 21:33:35
阅读次数:
213
C. Developing SkillsPetya loves computer games. Finally a game that he's been waiting for so long came out!The main character of this game hasndiffere...
分类:
其他好文 时间:
2015-09-29 16:49:31
阅读次数:
258