uva 639 Don't Get Rooked
In chess, the rook is a piece that can move any number of squares vertically or horizontally. In this problem we will consider small chess boards (at most 44)
tha...
分类:
其他好文 时间:
2015-01-27 18:36:48
阅读次数:
195
Sum square difference
Problem 6
The sum of the squares of the first ten natural numbers is,
12 + 22 + ... + 102 = 385
The square of the sum of the first ten natural numbers is,
(1 + 2 + ....
分类:
编程语言 时间:
2015-01-27 09:34:10
阅读次数:
170
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4323
Magic Number
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 1728 Accepted Submissi...
分类:
其他好文 时间:
2015-01-26 13:45:10
阅读次数:
116
Math MagicTime Limit:3000MSMemory Limit:32768KB64bit IO Format:%lld & %lluSubmitStatusDescriptionYesterday, my teacher taught us about math: +, -, *, ...
分类:
其他好文 时间:
2015-01-24 17:05:41
阅读次数:
161
DP。dp[i][j]可以表示i行j列满足要求的组合个数,考虑dp[i-1][k]满足条件,那么第i行的那k列可以为任意排列(2^k),其余的j-k列必须全为1,因此dp[i][j] += dp[i-1][k]*(2^k)*C(j, k)。 1 /* 5155 */ 2 #include 3 #i....
分类:
其他好文 时间:
2015-01-22 10:48:12
阅读次数:
291
1.题目: A game for one player is played on a board consisting of N consecutive squares, numbered from 0 to N ? 1. There is a number written on each squa...
分类:
其他好文 时间:
2015-01-21 18:08:23
阅读次数:
340
一,ioctl使用实例ioctl使用实例驱动程序.h文件 memdev.h[cpp]view plaincopy/*定义幻数*/#defineMEMDEV_IOC_MAGIC'k'/*定义命令*/#defineMEMDEV_IOCPRINT_IO(MEMDEV_IOC_MAGIC,1)#define...
分类:
系统相关 时间:
2015-01-20 21:58:51
阅读次数:
194
题目意思很简单啦,就是找回文使用string可以高速A过Source code:/*ID: wushuai2PROG: palsquareLANG: C++*///#pragma comment(linker, "/STACK:16777216") //for c++ Compiler#includ...
分类:
其他好文 时间:
2015-01-20 21:45:29
阅读次数:
128
I - Math Magic
Time Limit:3000MS Memory Limit:32768KB 64bit IO Format:%lld
& %llu
Submit Status
Description
Yesterday, my teacher taught us about math: +, -, *, /, GCD, LCM... ...
分类:
其他好文 时间:
2015-01-18 18:34:59
阅读次数:
203
Puzzle
A children's puzzle that was popular 30 years ago consisted of a 5x5 frame which contained 24 small squares of equal size. A unique letter of the alphabet was printed on each sm...
分类:
其他好文 时间:
2015-01-17 18:09:26
阅读次数:
265