码迷,mamicode.com
首页 >  
搜索关键字:factorial trailing z    ( 587个结果
Trailing Zeroes (III) -;lightoj 1138
Trailing Zeroes (III)PDF (English)StatisticsForumTime Limit:2 second(s)Memory Limit:32 MBYou task is to find minimal natural numberN, so thatN!contain...
分类:其他好文   时间:2015-08-21 09:25:23    阅读次数:193
projecteuler---->problem=34----Digit factorials
Problem 34145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145.Find the sum of all numbers which are equal to the sum of the factorial of the...
分类:其他好文   时间:2015-08-21 09:23:31    阅读次数:130
Light oj 1138 - Trailing Zeroes (III) 【二分查找 && N!中末尾连续0的个数】
1138 - Trailing Zeroes (III) PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB You task is to find minimal natural number N, so that ...
分类:其他好文   时间:2015-08-20 22:39:33    阅读次数:394
LightOJ Trailing Zeroes (III) 1138【二分搜索+阶乘分解】
1138 - Trailing Zeroes (III) PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB You task is to find minimal natural number N, so tha...
分类:其他好文   时间:2015-08-20 22:39:23    阅读次数:232
Light oj 1138 - Trailing Zeroes (III) 【二分查找好题】【 给出N!末尾有连续的Q个0,让你求最小的N】
1138 - Trailing Zeroes (III) PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB You task is to find minimal natural number N, so that ...
分类:其他好文   时间:2015-08-20 21:00:56    阅读次数:223
[LightOJ1282]Leading and Trailing
题目链接:http://acm.hust.edu.cn/vjudge/problem/visitOriginUrl.action?id=26992DescriptionYou are given two integers:nandk, your task is to find the most si...
分类:其他好文   时间:2015-08-20 01:15:52    阅读次数:193
LightOj 1282 Leading and Trailing
求n^k的前三位数字和后三位数字。范围:n (2 ≤ n lg(n^k)=lg(x) ---> klg(n)=lg(x) ---> x=10^(klgn). 因为求前三位,klgn大于2的整数部分可以舍弃。bit=floor(klgn-2), x=10^(klgn-bit)。后三...
分类:其他好文   时间:2015-08-19 16:08:08    阅读次数:131
UVA Leading and Trailing 11029【数学+快速幂】
11029 - Leading and Trailing Time limit: 3.000 seconds Apart from the novice programmers, all others know that you can’t exactly represent numbers raised to some high power. For example, the C fu...
分类:其他好文   时间:2015-08-18 16:32:15    阅读次数:204
【LeetCode】172 - Factorial Trailing Zeroes
Given an integern, return the number of trailing zeroes inn!.Note:Your solution should be in logarithmic time complexity.Solution :计算包含的2和5组成的pair的个数,...
分类:其他好文   时间:2015-08-05 20:01:38    阅读次数:108
python 核心编程第六章课后题自己做的答案
6–6. 字符串.创建一个 string.strip()的替代函数:接受一个字符串,去掉它前面和后面的 空格(如果使用 string.*strip()函数那本练习就没有意义了) 1 'Take a string and remove all leading and trailing whitespa...
分类:编程语言   时间:2015-08-03 18:53:31    阅读次数:203
587条   上一页 1 ... 34 35 36 37 38 ... 59 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!