Problem FReverse PrimeInput:Standard InputOutput:Standard OutputThere are a few 7 digit positive numbers whose reverse number is a prime number and le...
分类:
其他好文 时间:
2014-08-03 23:07:36
阅读次数:
469
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2014-08-03 22:59:56
阅读次数:
259
给出一个数组,最多可以删除k个数,问能够获得的最长的一个数字连续段为多少?把所有相同的数字都提取出来,保存取得每个数字需要删除的数字,然后二分枚举就可以了。召唤代码君:#include #include #include #include #define maxn 500200using names...
分类:
其他好文 时间:
2014-08-03 20:27:25
阅读次数:
221
Decode WaysA message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded me...
分类:
其他好文 时间:
2014-08-03 15:12:15
阅读次数:
238
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2817题目大意:给出三个数,来判断是等差还是等比数列,再输入一个n,来计算第n个数的值。 1 #include 2 #include 3 #include 4 #define m 200907 5 ...
分类:
其他好文 时间:
2014-08-03 15:02:35
阅读次数:
188
Consider an infinite full binary search tree (see the figure below), the numbers in the nodes are 1, 2, 3, .... In a subtree whose root node is X, we can get the minimum number in this subtree by repe...
分类:
其他好文 时间:
2014-08-03 12:49:15
阅读次数:
229
Description
In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecutive metallic sticks which are of the same lengt...
分类:
其他好文 时间:
2014-08-03 10:18:05
阅读次数:
265
题目:Given a collection of numbers, return all possible permutations.For example,[1,2,3] have the following permutations:[1,2,3], [1,3,2], [2,1,3], [2,....
分类:
编程语言 时间:
2014-08-03 10:09:25
阅读次数:
193
题目:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the....
分类:
编程语言 时间:
2014-08-03 04:40:04
阅读次数:
351
E. Lucky ArrayPetya loves lucky numbers. Everybody knows that lucky numbers are positive integers whose decimal representation contains only the lucky...
分类:
其他好文 时间:
2014-08-02 23:22:24
阅读次数:
389