码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
hdu3709 数位dp(自身平衡的数字)
http://acm.hdu.edu.cn/showproblem.php?pid=3709 Problem Description A balanced number is a non-negative integer that can be balanced if a pivot is placed at some digit. More specifically, imagi...
分类:其他好文   时间:2015-02-22 23:06:28    阅读次数:194
BZOJ3858 Number Transformation
我们发现i≥ sqrt(n)时,每次更新的乘数即ceil(n / i)是不变的假设i * x更新了n以后,用(i + 1) * y更新,则(i + 1) * y ≥ i * x =>y ≥ x * i / (i + 1) =>y ≥ x - x / (i + 1)也即x 11 12 using n....
分类:其他好文   时间:2015-02-22 21:56:13    阅读次数:145
hdu3652 数位dp(含13且被能被13整除的数)
http://acm.hdu.edu.cn/showproblem.php?pid=3652 B-number Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2815    Accepted Submission(s): ...
分类:其他好文   时间:2015-02-22 20:45:38    阅读次数:241
excel公式应用大全
excel公式应用大全1、ABS函数 函数名称:ABS 主要功能:求出相应数字的绝对值。 使用格式:ABS(number) 参数说明:number代表需要求绝对值的数值或引用的单元格。 应用举例:如果在B2单元格中输入公式:=ABS(A2),则在A2单元格中无论输入正数(如100)还是负数...
分类:其他好文   时间:2015-02-22 17:20:01    阅读次数:176
PAT1029. Median (25)
1029. Median (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard 作者CHEN, YueGiven an increasing sequence S of N integers, the median is the number at ...
分类:其他好文   时间:2015-02-22 16:54:17    阅读次数:140
python例子
例一:for循环for i in range(1,100): if i==23: print "great,%s you got your lucky number:" %(i) break else: p...
分类:编程语言   时间:2015-02-22 16:53:17    阅读次数:189
BZOJ2456 Mode & zju2132 The Most Frequent Number
题目Description给你一个n个数的数列,其中某个数出现了超过n div 2次即众数,请你找出那个数。Input第1行一个正整数n。 第2行n个正整数用空格隔开。Output一行一个正整数表示那个众数。Sample Input5 3 2 3 1 3Sample Output3HINT100%的数据,n<=500000,数列中每个数<=maxlongint。代码MLE的map= =本来还以为...
分类:其他好文   时间:2015-02-22 15:49:15    阅读次数:124
hdu3652---B-number(数位dp)
Problem Description A wqb-number, or B-number for short, is a non-negative integer whose decimal form contains the sub- string “13” and can be divided by 13. For example, 130 and 2613 are wqb-numbers,...
分类:其他好文   时间:2015-02-22 15:49:05    阅读次数:166
SGU[101] Domino
Description描述Dominoes – game played with small, rectangular blocks of wood or other material, each identified by a number of dots, or pips, on its fac...
分类:其他好文   时间:2015-02-22 15:46:50    阅读次数:172
AOJ 0009 Prime Number(求素数)
题意:给定一个数n,判断从2—n中的素数个数是多少。KEY:这里有两种做法,一是没注释那个代码测试极端数据999999就会错的,二是注释掉的那段代码才能AC。对于一眼看上去很简单的题目,特别要注意时间复杂度。#include #include #include const int maxn = 99...
分类:其他好文   时间:2015-02-22 14:33:50    阅读次数:148
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!