- 博客(4)
- 收藏
- 关注
原创 51nod 1394 差和问题(算法马拉松8)
有一个集合S,初始状态下有n个元素,对他进行如下操作:1、向S里面添加一个值为v的元素。输入格式为1 v2、向S里面删除一个值为v的元素。输入格式为2 v3、询问S里面的元素两两之差绝对值之和。输入格式为3 对于样例,操作3,|1-2|+|1-3|+|2-3|=4操作1 4之后,集合中的数字为1 2 3 4操作3,|1-2|+|1-3
2015-11-30 16:05:02 2295
原创 hackerrank Week of Code Target
Problem StatementLet's consider a standard darts target that consists of K concentric circles with the corresponding radiuses R1,R2,...,RK with the common center in the origin (0,0).
2015-11-30 13:58:41 2003
原创 HackerRank Week of Code -18 GG
Problem StatementYou are given an integer, N and a string, S of the length N−1 consisting of the letters 'G' and 'L'.A permutation P of the integers from 0 to (N−1) satisfies the p
2015-11-30 13:38:01 1692
原创 ubuntu 下安装bochs
参考文章:http://blog.csdn.net/lilongherolilong/article/details/7683952 安装gcc编译环境 sudo apt-get install build-essential sudo apt-get install xorg-dev sudo apt-get install libgtk2.0-d
2015-11-09 17:22:31 2978
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人