E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
1018
斯特林公式
题目来源:HDOJ
1018
(求阶乘的位数) 斯特林公式简介(维基百科): 斯特灵公式是一条用来取n阶乘近似值的数学公式。
·
2015-11-11 12:54
poj
1018
Communication System 枚举 VS 贪心
Communication System Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 21631 Accepted: 7689 Description We have received an order from Pizoo
·
2015-11-11 10:54
System
HDOJ-
1018
Big Number
pid=
1018
题意:给出一个数n,输出n的阶乘的位数 汗Σ( ° △ °|||)︴刚开始还准备上大数乘法 然而10000的阶乘结果就已经接近40000位10^7的阶乘...
·
2015-11-11 09:57
number
POJ DP问题
列表一:经典题目题号:容易:
1018
, 1050, 1083, 1088, 1125, 1143, 1157, 
·
2015-11-11 08:48
poj
POJ动态规划题目列表
列表一:经典题目题号:容易:
1018
, 1050, 1083, 1088, 1125, 1143, 1157, 1163
·
2015-11-11 06:22
动态规划
SHOI2008 题目总结
2333 BZOJ
1018
堵塞的交通: 题目大意:有一个2*n的矩阵,初始时没有边,每次可能会打通两个相邻的节点(相邻指曼哈顿距离为1)之间的无向道路或是拆毁两个相邻节点的道路,每次询问两个节点是
·
2015-11-11 05:31
2008
hdu
1018
(数学)
编辑器加载中 /*由斯特林[striling]公式可得: lnN!=NlnN-N+0.5ln(2N*pi) log10(N!)=lnN!/ln(10) 一个数字的位数,由对数来求。log10() // 求以10为底的对数log() // 以e为底的对数*///数学题#include <cmath>#include <cstdio>#include <iostrea
·
2015-11-11 05:15
HDU
BZOJ
1018
堵塞的交通traffic(线段树)
id=
1018
题意:一个2*n的格子,相邻格子之间有一条道路。初始时道路是不通的。 三种操作:(1)某条道路连起来;(2)某条道路断开;(3)询问某两个格子是否相连。
·
2015-11-11 03:26
线段树
别人整理的DP大全
动态规划 动态规划 容易:
1018
, 1050 , 1083 , 1088
·
2015-11-11 01:38
dp
1018
. Public Bike Management (30)
时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue There is a public bike service in Hangzhou City which provides great convenience to the touri
·
2015-11-11 00:56
public
Big Number
问题陈述: 杭州电子科技大学 HANGZHOU DIANZI UNIVERSITY Online Judge Problem -
1018
问题解析: 公式一:
·
2015-11-10 22:28
number
POJ
1018
Communication System 解题报告
http://poj.grids.cn/practice/
1018
描述 We have received an order from Pizoor Communications Inc. for
·
2015-11-10 21:13
System
HDU
1018
(数学题)
pid=
1018
Big Number Time Limit: 2000/1000 MS (Java/Others) Memory Limit
·
2015-11-09 13:06
HDU
公钥,私钥,SSL(讲的很生动) 对称加密、非对称加密初探
原文地址:http://chenling
1018
.blog.163.com/blog/static/1480254201058112410789/ 一,公钥私钥1,公钥和私钥成对出现2
·
2015-11-08 17:00
对称加密
1018
1 #include <iostream> 2 #include <iomanip> 3 using namespace std; 4 int main() 5 { 6 int i,t; 7 double n=2,m=1,sum=0; 8 int num; 9 cin>>num; 10
·
2015-11-08 15:54
ural
1018
Binary Apple Tree 树形dp
1018
.
·
2015-11-08 15:00
binary
acdream
1018
Hotel(函数式线段树、最近公共祖先)
id=
1018
题意:给出一棵树,每个节点有一个值w。若干询问,每个询问s,t,a,b,k,询问从s节点走到t节点权值在[a,b]之间的第k个节点。
·
2015-11-08 11:21
线段树
LightOJ
1018
Brush (IV)(记忆化搜索)
problem=
1018
题意:平面上有n个点,一次可以擦掉一条直线上的所有点。问至少擦多少次才能将所有点擦完? 思路:b[i][j]表示经过第i、j个点的直线经过的所有点的集合。
·
2015-11-08 11:27
搜索
ural
1018
Binary Apple Tree
1018
.
·
2015-11-07 14:44
binary
修改MFC标题栏上的图标和修改MFC窗口标题
转自: http://hi.baidu.com/laoyang
1018
/blog/item/e1d5f6037cec67fc08fa931e.html MFC程序的默认的标题是“
·
2015-11-07 12:43
mfc
杭电
1018
刚开始没有什么头绪 后来还是借鉴了大神的,用斯特林公式,看来数学底子也是很重要啊 斯特林公式是 本题是让我们求长度 所以公式可以改成 t=log10(n!)=log10(sqrt(2*pi*n))+n*log10(n/e); #include<stdio.h> #include<math.h> # define pi 3.141592653589793
·
2015-11-07 10:09
杭电
hdu
1018
Big Number
Big Number Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 27546 Accepted Submission(s): 12525 Prob
·
2015-11-05 08:53
number
PAT
1018
Public Bike Management
PublicBikeManagement题目描述ThereisapublicbikeserviceinHangzhouCitywhichprovidesgreatconveniencetothetouristsfromallovertheworld.Onemayrentabikeatanystationandreturnittoanyotherstationsinthecity.ThePublic
codeTZ
·
2015-11-03 18:00
DFS
pat
回溯
1018
scala-the answers to 'impatient scala'
http://www.baidu.com/p/hejuncheng
1018
?
leibnitz
·
2015-11-03 14:00
HDOJ---
1018
求N!的位数[斯特林公式---处理阶乘及阶乘位数的问题]
Big Number Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15969 Accepted Submission(s): 7061
·
2015-11-02 15:21
问题
1018
: [SHOI2008]堵塞的交通traffic - BZOJ
Description有一天,由于某种穿越现象作用,你来到了传说中的小人国。小人国的布局非常奇特,整个国家的交通系统可以被看成是一个2行C列的矩形网格,网格上的每个点代表一个城市,相邻的城市之间有一条道路,所以总共有2C个城市和3C-2条道路。 小人国的交通状况非常槽糕。有的时候由于交通堵塞,两座城市之间的道路会变得不连通,直到拥堵解决,道路才会恢复畅通。初来咋到的你决心毛遂自荐到交通部某份差事,
·
2015-11-02 12:32
2008
BC 61 Subtrees
每组数据输入一行包含一个整数N.(1≤N≤
1018
)(1\leqN\leq{10}^{18})输出描述对于每组数据输出一行,表示不同节点数的子树有多少种.输入样例5 6 7 8输出样例3 4 3 5
wsnbb123456789
·
2015-11-02 08:00
hdu
1018
Big Number(n!求位数)
pid=
1018
一天了,看不下数,坐不下题。。。唉。。终于a了一道了。。。求n!阶乘的数的位数。才开始我直接按大数阶乘处理。结果肯定超时。最后看了一下解题报告。
·
2015-11-01 14:36
number
HDU 5273 Dylans loves numbers(水题)
题意:给出一个0≤N≤
1018
,求其二进制中有几处是具有1的,假设相连的1只算1处,比如1101011就是3处。
·
2015-11-01 13:44
number
HDOJ
1018
结题报告--------Big Number
Problem Description In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, encryption, etc. In this problem you are
·
2015-11-01 12:02
number
HDU
1018
Big Number (阶乘位数)
题意:给一个数n,返回该数的阶乘结果是一个多少位(十进制位)的整数。 思路:用log来实现。 举个例子 一个三位数n 满足102 <= n < 103: 那么它的位数w 满足 w = lg103 = 3。 因此只要求lgn 向下取整 +1就是位数。然后因为阶乘比如5阶乘的话是5 * 4 * 3 * 2 * 1。位数就满足lg 5 * 4 *
·
2015-11-01 10:57
number
BNUOJ 13358 Binary Apple Tree
Original ID:
1018
64-bit integer IO format: %lld Jav
·
2015-11-01 08:23
binary
HDU
1018
Big Number
LINK:HDU
1018
题意:求n!的位数~ 由于n!最后得到的数是十进制,故对于一个十进制数,求其位数可以对该数取其10的对数,最后再加1~ 易知:n!
·
2015-10-31 19:59
number
ural(Timus)
1018
. Binary Apple Tree
树型DP:二叉苹果树 另外一个提交地址:http://www.cqoi.net:2012/JudgeOnline/problem.php?id=1375 里面有中文题目,不解释题目了。 树型DP:主要是两点,怎么建树,怎么DP。这两者应该说是相互制约相互影响的,怎么DP就要怎么建树,而建树方法对不对也决定了你能不能DP。所以先分析怎么DP的,再分析怎么建树 题意说要保留m个树枝,而且注意权
·
2015-10-31 19:33
binary
HDU
1018
Big number 斯特林公式,lnN!=NlnN-N+0.5*ln(2*N*pi)
这道数学题用到了数论中的一个公式,叫做斯特林公式,lnN!=NlnN-N+0.5*ln(2*N*pi) //============================================================================ // Name : HDU.cpp // Author : lonelycatcher // Version : // Copyr
·
2015-10-31 18:59
number
POJ
1018
Communication System
Communication System Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 20407 Accepted: 7253 Description We have received an order from Pizoor Communications Inc
·
2015-10-31 15:12
System
poj 1192 最优连通子集
最优连通子集 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 1940 Accepted:
1018
·
2015-10-31 15:57
poj
NUAA
1018
我用的一维动规140MS 但是还是有人比我快15MS 是不是有二维动规的算法呢 #include < stdio.h > #include < string .h > int n, i, j, k, mxa; int f[ 201 ][ 201 ]; int
·
2015-10-31 11:08
uaa
杭电
1018
Big Number
* 日期:2011-2-9 * 作者:SJF * 题号:杭电
1018
·
2015-10-31 11:52
number
如何防止robot骚扰你的网页
www.aspalliance.com上看到一篇文章( Stopping Automated Web Robots Visiting ASP/ASP.NET Websites , http://aspalliance.com/
1018
·
2015-10-31 11:07
robot
Android HorizontalScrollView和ScrollView 水平滚动 垂直滚动
本文转自:http://hi.baidu.com/laoyang
1018
/blog/item/b34b241f3c7b44d6a78669b1.html Android SDK有两个滚动组件
·
2015-10-31 10:07
[zz] POJ 动态规划DP题目列表
容易:
1018
, 1050, 1083, 1088, 1125, 1143, 1157, 1163, 1178, 1179, 1189, 1208, 1276, 1322, 1414,
·
2015-10-31 10:14
动态规划
HDU
1018
阶乘数的位数
题目大意: 将一个数开阶乘后得到的值,来求这个值的位数 n! = 1*2*3*4...*n 对于求一个数的位数的方法为ans = lg(n!) + 1 那么就可以看作 ans = lg(1) + lg(2) .......+ lg(n) + 1 #include <cstdio> #include <cmath> cons
·
2015-10-31 10:12
HDU
Timus
1018
树形DP
树形DP,令res[i][j]表示以i为根的子树删除j条边所保留的最大苹果数; res[i][j]=max(res[i][j],res[lChild][k]+res[rChild][j-k]+value[i]);(0<=j<=inum[i],0<=k<=inum[lChild]) inum[i]表示以i为根的子树树枝的个数,value[i]以i为端点的树枝的苹果树。
·
2015-10-31 10:35
dp
Telerik_2012_Q3 (已破解)全套下载链接
Telerik_Extensions_for_ASPNET_MVC_2012_3_
1018
_Commercial.zip 4. Telerik.W
·
2015-10-31 09:16
2012
URAL
1018
Binary Apple Tree
可以用f[i][j]表示递推到第i个节点时保留j个树枝的最优解,决策的时候要么只从某个子树中选取,要么就同时从两个子树中选取,而且如果选择了某个子树中的树枝,那么就必须选择和这个子树相连接的树枝。 #include<stdio.h> #include<string.h> #define MAXD 110 #define MAX
·
2015-10-31 09:15
binary
HDU
1018
Big Number
pid=
1018
网上有求解的数学公式, #include < iostream > #include < cmath > using
·
2015-10-31 08:54
number
ubuntu系统使用dnw下载程序
mod=viewthread&tid=
1018
&extra= 解压源码包:
·
2015-10-31 08:37
ubuntu
timus_
1018
_dp
二叉苹果树 题目意思: 有一个二叉树,每个树枝都有若干个苹果,现在要保留一些树枝,把其它的树枝删掉,问这棵树最多能保留多少个苹果? 输入:第一行有两个数N和Q,N(2 ≤ N ≤ 100; 1 ≤ Q ≤ N − 1)代表二叉树中结点的个数,Q代表保留的树枝的个数。接下来的N-1行描述二叉树的边,每条边包含
·
2015-10-31 08:17
dp
HDU
1018
#include<stdio.h> #include<math.h> #define PI 3.14159265 int num,ans; void count_factorial() { double t; t = (num*log(num) - num + 0.5*log(2*num*PI))/log(10); ans= (int
·
2015-10-30 15:27
HDU
上一页
23
24
25
26
27
28
29
30
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他