题目:hdu1013, hdu1061, hdu1163, hdu1197.ordr(n) = (n-1)%9+1.其中,n-1是为了将结果0-8匹配到1-9.Reference:[1]https://en.wikipedia.org/wiki/Digital_root[2]https://en.w...
分类:
其他好文 时间:
2015-08-18 18:59:25
阅读次数:
498
POJ 3187 Backward DIgit Sums将一行数按杨辉三角的规则计算为一个数,已知最后那个数和三角形的高度,求最初的那行数。开始我还在推算杨辉三角的公式,无奈数学渣渣本质暴露无遗。就放弃采用一次次计算的方法。后来竟然惊喜的发现自己的这种方法反而更快。可能是因为公式里有组合和阶乘的原因...
分类:
其他好文 时间:
2015-08-18 18:56:14
阅读次数:
114
[1219] Time
时间限制: 1000 ms 内存限制: 131072 K
问题描述
Digital
clock use 4 digits to express time, each digit is described by 3*3 characters (including”|”,”_”and” “).now given the current time, plea...
分类:
其他好文 时间:
2015-08-18 16:27:05
阅读次数:
124
题目Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at the head of the list.分析该题目要求:将一整数按位存储在vector中,对其...
分类:
其他好文 时间:
2015-08-18 16:19:01
阅读次数:
129
Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is like:3 + ...
分类:
其他好文 时间:
2015-08-18 16:05:11
阅读次数:
164
【转载】Neural Networks for Digit Recognition with Pybrain
分类:
Web程序 时间:
2015-08-18 14:07:52
阅读次数:
230
http://codeforces.com/problemset/problem/124/BDescriptionYou are givennk-digit integers. You have to rearrange the digits in the integers so that the ...
分类:
其他好文 时间:
2015-08-18 09:02:52
阅读次数:
140
//https://leetcode.com/problems/number-of-digit-one/Given an integer n, count the total number of digit 1 appearing in all non-negative integers less ...
分类:
其他好文 时间:
2015-08-17 23:24:33
阅读次数:
136
题意:给你n个区间,在每个区间里各取一个数(随机取),求这n个数中超过K%的数是首位为1数的概率分析:dp[i][j]取前i个数,有j个是首位为1的数的概率易知,dp[i][j]=dp[i-1][j]*(1-p[i])+dp[i-1][j-1]*p[i];现在关键是求p[i],第i个区间首位为1的数...
分类:
其他好文 时间:
2015-08-17 23:21:37
阅读次数:
228
Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is like:3 + ...
分类:
编程语言 时间:
2015-08-17 19:08:01
阅读次数:
117