码迷,mamicode.com
首页 >  
搜索关键字:humble numbers    ( 7694个结果
Codeforces Beta Round #91 (Div. 1 Only) E. Lucky Array
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
LightOJ 1205 - Palindromic Numbers (数位dp)
LightOJ 1205 - Palindromic Numbers (数位dp) ACM 题目地址:SPOJ MYQ10 Mirror Number 题意:  求[a,b]中回文的个数。 分析:  是SPOJ MYQ01的简单版...其实有非递归方法的。 代码: /* * Author: illuz * Blog: http:...
分类:其他好文   时间:2014-08-02 20:56:24    阅读次数:218
POJ 3252 Round Numbers 数位DP
注意只有高位放了1之后才能开始统计#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace ...
分类:其他好文   时间:2014-08-02 12:42:53    阅读次数:200
Combination Sum II leetcode java
题目:Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each ....
分类:编程语言   时间:2014-08-02 01:48:12    阅读次数:246
[leetcode笔记] 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->...
分类:其他好文   时间:2014-08-02 01:33:12    阅读次数:249
zju 1383 Binary Numbers
#include using namespace std;int a[1000];int f(int n){ int k=0; while(n) { a[k++]=n%2; n/=2; } return k;}int main(int argc, char *argv[]){ int n,m,...
分类:其他好文   时间:2014-08-01 22:45:22    阅读次数:248
UVA 11582 Colossal Fibonacci Numbers!
斐波那契数列。。。利用斐波那契数列的循环:因为结果%n,所以最多有n^2个数后会出现循环。预处理,不能直接用f[maxn][maxn^2]来保存,数组太大。。。所以用vector来保存斐波那契数列%n 的值。 1 #include 2 #include 3 #include 4 #includ...
分类:其他好文   时间:2014-08-01 19:04:12    阅读次数:173
Leetcode--Multiply Strings
Problem Description: Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non-negative. 分析:两个string相乘...
分类:其他好文   时间:2014-08-01 16:06:01    阅读次数:141
UVA 11582 Colossal Fibonacci Numbers! 找循环节
注意n=1的情况#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std;typed...
分类:其他好文   时间:2014-08-01 15:31:01    阅读次数:260
Combination Sum leetcode java
题目:Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same re....
分类:编程语言   时间:2014-08-01 10:43:21    阅读次数:266
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!