码迷,mamicode.com
首页 >  
搜索关键字:numbers    ( 7657个结果
the smallest positive number
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.What is the smallest positive number that is...
分类:其他好文   时间:2014-05-08 14:36:50    阅读次数:248
Sum square difference
简单:e sum of the squares of the first ten natural numbers is,12 + 22 + ... + 102 = 385The square of the sum of the first ten natural numbers is,(1 + 2 ...
分类:其他好文   时间:2014-05-07 20:23:43    阅读次数:338
Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:其他好文   时间:2014-05-07 13:42:51    阅读次数:278
ProjectEuler_P13
Problem:Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.3710728753390210279879799822083759024651013574025046376...
分类:其他好文   时间:2014-05-07 13:34:38    阅读次数:299
【Leetcode】Two Sum
[Question] Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to t...
分类:其他好文   时间:2014-05-07 05:37:44    阅读次数:278
SCUT 2014 B题 Numbers (DFA有穷自动机)
题目链接:   SCUT 2014  题目大意:   判断给出的字符串中是否是正确的科学计数法                   A+1.5Be+8C,可以是实数或者含有指数的实数,ABC三个部分表示空格,可有可无,正负号可有可无                   指数部分只能是整数 解题思路:   建立有穷自动机状态转移表,一共是10种状态...
分类:其他好文   时间:2014-05-07 05:32:27    阅读次数:330
HDU 4722 Good Numbers (数位dp)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4722 思路:数位dp,dp[i][j]表示到第i位,数字和%10为j,然后进行dp,注意完全匹配的情况是要+1,而其他情况是从0 到 9 都要考虑 代码: #include #include #include #include using namespace std; int t; l...
分类:其他好文   时间:2014-05-07 04:55:37    阅读次数:314
codechef Subtraction Game 1题解
Subtraction Game 1 Chef is playing a game on a sequence of N positive integers, say A1, A2, ... AN. The game is played as follows. If all the numbers are equal, the game ends.Otherwise Sele...
分类:其他好文   时间:2014-05-07 03:14:01    阅读次数:280
Leetcode | Triangle
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-05-07 02:55:24    阅读次数:377
ProjectEuler_P12
Problem:The sequence of triangle numbers is generated by adding the natural numbers. So the 7thtriangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28...
分类:其他好文   时间:2014-05-07 00:28:01    阅读次数:365
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!