Multiplication PuzzleTime Limit:1000MSMemory Limit:65536KTotal Submissions:6292Accepted:3814DescriptionThe multiplication puzzle is played with a row ...
分类:
其他好文 时间:
2014-08-05 13:22:49
阅读次数:
205
Description
The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the row and scores the number of points eq...
分类:
其他好文 时间:
2014-08-05 11:12:25
阅读次数:
267
题目大意:对n个数组成的序列取数,规定最两边不能取,每次取一个a[i],得到 a[l] * a[i] * a[r] 的分数(a[l]是a[i]左边的数,a[r]是a[i]右边的数),并把这个数从序列中移走,求n-2次取数后的得分和的最小值分析:正着确定状态不好做,不如反着来,设dp[l][r]为向区...
分类:
其他好文 时间:
2014-08-05 03:01:28
阅读次数:
217
题目大意:求a^b的最右边的数。
这道题是有规律的 解题报告: http://blog.csdn.net/shengweisong/article/details/38024619
但是注意数据很大,要用64位的整型,被坑了一次。。
题目链接:点击打开链接
代码:
#include
int main()
{
__int64 n, m, i;
while(scanf("%...
分类:
其他好文 时间:
2014-08-04 17:50:37
阅读次数:
189
Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all distinc...
分类:
其他好文 时间:
2014-08-04 13:31:07
阅读次数:
250
Description
The puzzle game of Sudoku is played on a board of N2 × N2 cells. The cells are grouped in N × N squares of N × N cells each. Each cell is either empty or contains a number between
1 a...
分类:
其他好文 时间:
2014-08-02 23:26:34
阅读次数:
344
题目:
Ananagrams
Most crossword puzzle fans are used to anagrams--groups of words with the same letters in different orders--for example OPTS, SPOT, STOP, POTS and POST. Some words however...
分类:
其他好文 时间:
2014-08-02 18:30:13
阅读次数:
303
题目:Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will ....
分类:
编程语言 时间:
2014-08-01 10:38:21
阅读次数:
224
A hard puzzle
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 28814 Accepted Submission(s): 10315
Problem Description
lcy gives a ha...
分类:
其他好文 时间:
2014-07-27 11:33:52
阅读次数:
228
Ignatius's puzzle
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 6222 Accepted Submission(s): 4283
Problem Description
Ignatius is ...
分类:
其他好文 时间:
2014-07-27 11:28:42
阅读次数:
185