洗牌算法是我们常见的随机问题,在玩游戏、随机排序时经常会碰到,一个最常用的地方就是组卷。它可以抽象成这样:M以内的所有自然数的随机顺序数组。package com.math;import java.util.Random;/** * @author summer * */public class.....
分类:
编程语言 时间:
2015-11-24 22:56:39
阅读次数:
166
#import // #import是OC种的导入头文件或者是系统框架的指令// 定义了一个Season枚举类型enum Season { Spring = 1, // 值默认是从0开始,后面的依次加1 Summer, Autumn, Winter}; // ";"不能省略int main(int....
分类:
移动开发 时间:
2015-11-07 16:08:53
阅读次数:
235
Problem Description Harry Potter has some precious. For example, his invisible robe, his wand and his owl. When Hogwarts school is in holiday, Harry ....
分类:
其他好文 时间:
2015-10-28 01:27:20
阅读次数:
261
DescriptionLittle Hi is studying on memory allocating algorithms this summer. He starts his experiments with a very simple algorithm. By this algorith...
分类:
其他好文 时间:
2015-10-27 19:45:32
阅读次数:
594
Road ConstructionTime Limit:2000MSMemory Limit:65536KTotal Submissions:10141Accepted:5031DescriptionIt's almost summer time, and that means that it's ...
分类:
其他好文 时间:
2015-10-22 19:23:45
阅读次数:
231
Summer HolidayTime Limit: 10000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2319Accepted Submission(s): 1082Pro...
分类:
移动开发 时间:
2015-10-21 21:00:32
阅读次数:
249
"Good News for the National Holiday!"Telephone interview with Youyou Tu following the announcement of the 2015 Nobel Prize in Physiology or Medicine, ...
分类:
其他好文 时间:
2015-10-10 10:30:37
阅读次数:
337
H -May Day HolidayDescriptionAs a university advocating self-learning and work-rest balance, Marjar University has so many days...
分类:
其他好文 时间:
2015-10-10 00:25:24
阅读次数:
232
题目链接:http://acm.bnu.edu.cn/v3/problem_show.php?pid=39572题目详细分析:http://talk.icpc-camp.org/d/127-jag-summer-2012-day-4-j-usoperanto对于这个题目,自己的一点补充(bfs 拓扑...
分类:
编程语言 时间:
2015-10-04 00:25:53
阅读次数:
271
状压dp,由于枚举两维状态会GG,所以只枚举当前位置前m个的状态,就是这个样子大概= =;呆马: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #define...
分类:
其他好文 时间:
2015-10-02 19:51:03
阅读次数:
318