思路:对于 k 位置的 孩子,他的 数字是 +num 那么因为他自己本身是要被踢走的,所以相对位置 为k= k+num-1如果数字是 -num,那么按正着数就没影响,k=k-num。线段树存储当前区间共有多少个人,每一次找到第k (前面有k-1个)个孩子,经过的区间都要 -1,然后记录被踢走的孩子编...
分类:
其他好文 时间:
2014-07-28 14:37:33
阅读次数:
222
Please help me contribute to this list, for non-experience iOS developers or someone who need a come-in-handy library list to refer or to use in their projects. Fork, edit and send a PR are all things...
分类:
移动开发 时间:
2014-07-26 17:15:02
阅读次数:
931
Moving TablesThe famous ACM (Advanced Computer Maker) Company has rented a floor of a building who...
分类:
其他好文 时间:
2014-07-26 14:22:30
阅读次数:
263
(一)2014-07-24向那些疯狂的家伙们致敬Here's to the crazy ones. The misfits. The rebels. The troublemakers. The round pegs in the square holes.The ones who see thin...
分类:
其他好文 时间:
2014-07-25 02:39:44
阅读次数:
250
FroggerDescriptionFreddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans ...
分类:
其他好文 时间:
2014-07-24 21:18:13
阅读次数:
334
Problem Description
A little girl loves programming competition very much. Recently, she has found a new kind of programming competition named "TopTopTopCoder". Every user who has registered in "To...
分类:
其他好文 时间:
2014-07-24 10:27:14
阅读次数:
301
Linux系统相关几个命令使用last查看用户成功登录信息/var/log/wtmp文件记录了用户成功登录的信息。使用last可以查看lastb查看用户不成功登录的信息who查看已登录的用户w查看登录用户的活动e2label查看或更改分区卷标e2label命令可以用来查看或修改ext2/ext3分区的卷标。语法为..
分类:
系统相关 时间:
2014-07-23 21:16:46
阅读次数:
529
People who use computers ghd hair straighteners go for movie star times, Search for, Stop GHD Peacock 2013 well-accepted showdowns, And luxuriate in b...
分类:
其他好文 时间:
2014-07-23 15:15:36
阅读次数:
232
1、who命令通过读系统日志的内容显示当前已经登录的用户。 2、Unix系统把数据存放在文件中,可以通过以下系统调用操作文件: open(filename, how)
creat(filename, mode)
read(fd, buffer, amt)
write(fd, buffer...
分类:
系统相关 时间:
2014-07-23 00:31:57
阅读次数:
347
Single doesn't always mean lonely and Relationship doesn't always mean happy.(单身并非一定孤独,恋爱并非注定幸福.)People who care,use words to express. People who care...
分类:
其他好文 时间:
2014-07-22 22:43:54
阅读次数:
202