- 博客(6)
- 收藏
- 关注
原创 位运算的一些案例
C. Bits time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Let's denote as the number of bits set ('1' bits)
2014-11-13 14:41:58 308
原创 该暴力的时候还是要暴力滴!
#include #include #include #include #include #include #include using namespace std; #define MAX 1005 #define T printf("***\n"); #define arr0 memset(arr,0,sizeof(arr)); #define arr1 memset
2014-11-02 22:12:04 443
原创 遇到大数据题目时,尽量找规律来解决
C. Table Decorations time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You have r red, g green and b blue ba
2014-10-28 11:21:57 496
转载 全排列生成算法:next_permutation
概念 全排列的生成算法有很多种,有递归遍例,也有循环移位法等等。C++/STL中定义的next_permutation和prev_permutation函数则是非常灵活且高效的一种方法,它被广泛的应用于为指定序列生成不同的排列。本文将详细的介绍prev_permutation函数的内部算法。 按照STL文档的描述,next_permutation函数将按字母表顺序生成给定序列的下一个较
2014-10-21 10:05:24 298
原创 格式一定要控制好
Write a program that finds and displays all pairs of 5-digit numbers that between them use the digits 0 through 9 once each, such that the first number divided by the second is equal to an integer N
2014-10-19 21:37:27 311
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人