码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
LeetCode-39 Combination Sum
Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num...
分类:其他好文   时间:2015-02-22 13:21:18    阅读次数:115
HTML5 移动Web
一、本地存储 localStorage sessionStorage Storage事件监听二、移动Web的离线应用 离线与缓存 ApplicationCache、manifest三、HTML5表单元素 input search email number rang...
分类:移动开发   时间:2015-02-22 11:01:57    阅读次数:181
leetcode -- Largest Number
原题: Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330. Note: The result ma...
分类:其他好文   时间:2015-02-21 22:19:37    阅读次数:169
PAT1024. Palindromic Number
A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number...
分类:其他好文   时间:2015-02-21 18:51:20    阅读次数:178
PAT1023. Have Fun with Numbers
Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 2469135...
分类:其他好文   时间:2015-02-21 16:33:11    阅读次数:132
PAT1015. Reversible Primes
A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re...
分类:其他好文   时间:2015-02-21 09:42:17    阅读次数:195
HDOJ-1005 Number Sequence
http://acm.hdu.edu.cn/showproblem.php?pid=1005给出两个初值f(1) = 1;f(2) = 1和 递推公式f(n) = (a * f(n - 1) + b * f(n - 2)) % 7输入a,b,n 要求输出f(n)1 int f[55], a, b, ...
分类:其他好文   时间:2015-02-21 01:22:39    阅读次数:166
ACdream 1114(莫比乌斯反演)
传送门:Number theory题意:给n个数,n 和 每个数的范围都是 1---222222,求n个数中互质的对数。分析:处理出每个数倍数的个数cnt[i],然后进行莫比乌斯反演,只不过这里的F(i)=cnt[i]*(cnt[i]-1)/2.#pragma comment(linker,"/ST...
分类:其他好文   时间:2015-02-20 23:09:51    阅读次数:241
HDU-1266 Reverse Number
题目链接:点我点我点我 其实这题没啥难度,简单的字符串处理,开学考java练练手而已 只需要注意0 负数 还有 末尾有0的数字就好 另外,书写风格还是太差了。 代码如下: import java.util.Arrays; import java.util.Scanner; public class Main { public ...
分类:其他好文   时间:2015-02-20 18:38:51    阅读次数:111
杭电ACM 三 大数取模
题目及代码 Problem Description As we know, Big Number is always troublesome. But it's really important in our ACM. And today, your task is to write a program to calculate A mod B. To make the problem ...
分类:其他好文   时间:2015-02-20 14:09:40    阅读次数:345
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!