Co-prime
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d
& %I64u
Submit Status
Appoint description:
System Crawler (2015-01-07)
Description
Given a number N, y...
分类:
其他好文 时间:
2015-01-08 22:52:22
阅读次数:
314
Given a digit string, return all possible letter combinations that the number could represent.
A mapping of digit to letters (just like on the telephone buttons) is given below.
Input:Digit st...
分类:
其他好文 时间:
2015-01-08 22:51:58
阅读次数:
270
sql 第 10条 到20条select * from( select *,ROW_NUMBER () over (order by @@servername) as rownum from tb_Grade) a where rownum between 11 and 20 select top....
分类:
数据库 时间:
2015-01-08 22:32:07
阅读次数:
233
一、分类基本数据类型:undefined、null、string、Boolean、number复杂数据类型:objectobject的属性以无序的名称和值对的形式 (name : value) 来定义二、详解1、undefined:undefined类型只有一个值:undefined,在使用var对...
分类:
编程语言 时间:
2015-01-08 20:08:04
阅读次数:
316
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2015-01-08 20:06:49
阅读次数:
131
https://oj.leetcode.com/problems/single-number/http://blog.csdn.net/linhuanmars/article/details/22648829publicclassSolution{
publicintsingleNumber(int[]A)
{
//SolutionA
//returnsingleNum_Xor(A);
//SolutionB
returnsingleNum_BitCompare(A);
//SolutionC
//ret..
分类:
其他好文 时间:
2015-01-08 18:16:14
阅读次数:
141
https://oj.leetcode.com/problems/single-number-ii/http://blog.csdn.net/linhuanmars/article/details/22645599publicclassSolution{
publicintsingleNumber(int[]A){
returnsingleNumber_BitCompare(A,3);
}
privateintsingleNumber_BitCompare(int[]A,intk)
{
inttoRetur..
分类:
其他好文 时间:
2015-01-08 18:15:42
阅读次数:
200
Related to question Excel Sheet Column Title
Given a column title as appear in an Excel sheet, return its corresponding column number.
For example:
A -> 1
B -> 2
C -> 3
...
...
分类:
编程语言 时间:
2015-01-08 18:09:37
阅读次数:
165
题目大意:给定n,k,i从1到k循环一遍,每次将n更新成i的倍数中第一个大于等于n的 求最终的n
逗比题。。。
我们会发现当i>=sqrt(n)时,ceil(n/i)每次都是一样的- -
↑不能理解这句话的注意n是变化的
于是当i>=sqrt(n)时只需要输出ceil(n/i)*k即可
别的做法基本都卡了- -
#include
#include
#include
#includ...
分类:
其他好文 时间:
2015-01-08 17:59:31
阅读次数:
342
题目描述:
把只包含因子2、3和5的数称作丑数(Ugly Number)。例如6、8都是丑数,但14不是,因为它包含因子7。
习惯上我们把1当做是第一个丑数。求按从小到大的顺序的第N个丑数。
输入:
输入包括一个整数N(1
输出:
可能有多组测试数据,对于每组数据,
输出第N个丑数。
样例输入:
3
样例输出:
3
所谓...
分类:
其他好文 时间:
2015-01-08 15:23:57
阅读次数:
122