码迷,mamicode.com
首页 >  
搜索关键字:consecutive numbers    ( 8082个结果
[LeetCode OJ] Decode Ways
A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message conta...
分类:其他好文   时间:2014-07-16 18:20:59    阅读次数:155
python 实现求和、计数、最大最小值、平均值、中位数、标准偏差、百分比。
import sys class Stats: def __init__(self, sequence): # sequence of numbers we will process # convert all items to floats for numeri...
分类:编程语言   时间:2014-07-16 18:06:48    阅读次数:257
LeetCode——Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example, Given 1->2->3->3->4->4->5, return 1->2->5. Given 1->1-...
分类:其他好文   时间:2014-07-16 17:30:52    阅读次数:230
LeetCode——Combinations
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example, If n = 4 and k = 2, a solution is: [ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4], ]...
分类:其他好文   时间:2014-07-16 17:27:32    阅读次数:139
B - Adding Reversed Numbers
B - Adding Reversed Numbers Time Limit:2000MS     Memory Limit:65536KB     64bit IO Format:%lld & %llu Submit Status Description The Antique Comedians of Malidinesia prefer comedies to...
分类:其他好文   时间:2014-07-16 17:16:04    阅读次数:207
Bit operator: Left shift and Right shift (Signed or unsigned? )
No matter left shift or right shift, the result's sign should always be the same as its left operand. By default, const numbers in C/C++ is signed. -Wsign-compare {      unsigned int j = 3;      ...
分类:其他好文   时间:2014-07-16 12:59:21    阅读次数:238
Codeforces446C DZY Loves Fibonacci Numbers(线段树 or 分块?)
第一次看到段更斐波那契数列的,整个人都不会好了。事后看了题解才明白了一些。首先利用二次剩余的知识,以及一些数列递推式子有下面的至于怎么解出x^2==5(mod 10^9+9),我就不知道了,但是要用的时候可以枚举一下,把这些参数求出来之后就题目就可以转化为维护等比数列。由于前面的常数可以最后乘,所以...
分类:其他好文   时间:2014-07-15 22:52:58    阅读次数:567
ACdream群赛1112(Alice and Bob)
题意:http://acdream.info/problem?pid=1112Problem DescriptionHere is Alice and Bob again !Alice and Bob are playing a game. There are several numbers.Fir...
分类:其他好文   时间:2014-07-14 23:51:56    阅读次数:425
G - Self Numbers(2.2.1)
G - Self Numbers(2.2.1) Time Limit:1000MS     Memory Limit:10000KB     64bit IO Format:%I64d & %I64u Submit Status Description In 1949 the Indian mathematician D.R. Kaprekar discovered...
分类:其他好文   时间:2014-07-14 16:18:29    阅读次数:194
Ugly Numbers(1.5.8)
Time Limit:1000MS     Memory Limit:10000KB     64bit IO Format:%I64d & %I64u Submit Status Description Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence  ...
分类:其他好文   时间:2014-07-14 14:03:02    阅读次数:206
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!