Problem Description
Last night, little erriyue had a horrible nightmare. He dreamed that he and his girl friend were trapped in a big maze separately. More terribly, there are two ghosts in the maz...
分类:
Web程序 时间:
2014-08-27 22:03:18
阅读次数:
255
Problem Description
The students of the HEU are maneuvering for their military training.
The red army and the blue army are at war today. The blue army finds that Little A is the spy of the red ar...
分类:
其他好文 时间:
2014-08-27 18:50:28
阅读次数:
358
结构体 可以在主函数Main中定义,那么该结构体只能在主函数中使用;如果在主函数Main外定义,那么可以在其他项目中使用。 按上面图片中定义,应用如下 1 Student_Info wang = new Student_Info(); 2 wang...
分类:
其他好文 时间:
2014-08-27 16:03:37
阅读次数:
149
Little Tiger vs. Deep MonkeyTime Limit: 1000msMemory Limit: 65535KBThis problem will be judged onHDU. Original ID:481564-bit integer IO format:%I64d J...
分类:
其他好文 时间:
2014-08-27 10:44:38
阅读次数:
307
1 acquaintance熟人 eg. I have a large circle of friends and acquaintances engaged in photography.我在摄影界交游甚广。 认识,了解n eg. They had little or no acquaintanc...
分类:
Web程序 时间:
2014-08-26 13:21:46
阅读次数:
138
B - Burning Bridges
Time Limit:5000MS Memory Limit:32768KB 64bit IO Format:%lld
& %llu
Submit Status
Description
Ferry Kingdom is a nice little country located on N islands...
分类:
其他好文 时间:
2014-08-26 11:39:15
阅读次数:
263
Little Hasan loves to play number games with his friends.One day they were playing a game where one of them will speak out a positive numberand the others have to tell the sum of its factors. The firs...
分类:
其他好文 时间:
2014-08-25 11:57:04
阅读次数:
235
题目链接:Codeforces 460D Little Victor and Set
题目大意:给定范围l,r,选小于k个数,使得这些数的亦或和最小。
解题思路:加入k为偶数,那么kXOR(k+1)=1
根据这个可以处理掉k≠3的所有情况。
对于k=3的情况,找到一个大于l的2k,如果满足2k+1≤r,那么就可以构造出三个数亦或值为0的情况。
#include
#include...
分类:
其他好文 时间:
2014-08-25 01:13:13
阅读次数:
342
还是看了little_w大神写的才知道怎么写,看完发现自己题意也理解错了,里面有个neighboring,意思就是你指定任务的时候指定的是原序列中连续的一段然后就是怎么DP了,新学了个很好的dp模型 dp[i][j]表示前i个robot已经分担了j个任务是否可行,可行为1,不可行为0.所以对于某个当...
分类:
其他好文 时间:
2014-08-24 18:01:22
阅读次数:
208
暴力+构造
If r?-?l?≤?4 we can all subsets of size not greater than k.
Else, if k?=?1, obviously that answer is l. If k?=?2,
answer is 1, because xor of numbers 2x and 2x?+?1 equls 1.
If k?≥...
分类:
其他好文 时间:
2014-08-24 11:40:22
阅读次数:
233