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
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
//3.0初速度需要60秒减少至0
const float MaxTime = 50;
//加速度,方向向下
const float VG = 0.05;
//初速度
const float MaxV = 2.5;
//初始化总路程
const float AllLength = 692;
typedef enum {
GameNoStart,
GamePlaying,
...
分类:
移动开发 时间:
2014-08-26 09:55:55
阅读次数:
354
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
原帖:http://www.cnblogs.com/darktime/p/3298075.html不同的CPU有不同的字节序类型 这些字节序是指整数在内存中保存的顺序 这个叫做主机序最常见的有两种1. Little endian:将低序字节存储在起始地址2. Big endian:将高序字节存储在起...
分类:
编程语言 时间:
2014-08-23 16:40:21
阅读次数:
291