码迷,mamicode.com
首页 >  
搜索关键字:nearly prime numbers    ( 9679个结果
关于工作
It is no use doing what you like ; you have got to like what you do.——Winston Churchill(British prime minister)不能爱哪行才干哪行,要干哪行爱哪行。——美国首相 丘吉尔. W.
分类:其他好文   时间:2014-07-16 23:21:01    阅读次数:236
Git Note - git tag
git tag is used to create labels, usually for version numbers. Format: git tag Example: git tag v0.1 HEAD is to create a version number v0.1 on curren...
分类:其他好文   时间:2014-07-10 14:29:01    阅读次数:213
poj 3252 Round Numbers 【推导·排列组合】
以sample为例子[2,12]区间的RoundNumbers(简称RN)个数:Rn[2,12]=Rn[0,12]-Rn[0,1]即:Rn[start,finish]=Rn[0,finish]-Rn[0,start-1]所以关键是给定一个X,求出Rn[0,X]现在假设X=10100100这个X的二进...
分类:其他好文   时间:2014-07-10 13:56:12    阅读次数:179
Leetcode-Two Sum
题目: 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 the ta...
分类:其他好文   时间:2014-06-28 08:17:11    阅读次数:305
UVA 11105 - Semi-prime H-numbers(数论)
11105 - Semi-prime H-numbers 题目链接 题意:给定4 * n + 1的集合,在这个集合基础上求这个集合的集合素数,然后求出这个集合中,由两个集合素数相乘得到的数有几个。 思路:先筛出集合素数,然后暴力一下两两组合有多少个即可。 代码: #include #include const int N = 1000005; int vis[N...
分类:其他好文   时间:2014-06-28 07:47:24    阅读次数:358
Permutations II
题目 Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example, [1,1,2] have the following unique permutations: [1,1,2], [1,2,1], ...
分类:其他好文   时间:2014-06-27 23:53:21    阅读次数:290
Permutations
题目 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,3,1], [3,1,2], and [3,2,1]....
分类:其他好文   时间:2014-06-27 23:48:51    阅读次数:240
[leetcode] Minimum Path Sum
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
分类:其他好文   时间:2014-06-27 23:02:33    阅读次数:258
LeetCode OJ - Add Two Numbers
题目:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a sing...
分类:其他好文   时间:2014-06-27 11:38:12    阅读次数:207
freemarker写select组件报错总结(五)
1、错误描述 六月 26, 2014 10:44:49 下午 freemarker.log.JDK14LoggerFactory$JDK14Logger error 严重: Template processing error: "The only legal comparisons are between two numbers, two strings, or two dates.\nLeft...
分类:其他好文   时间:2014-06-27 07:21:12    阅读次数:196
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!