码迷,mamicode.com
首页 >  
搜索关键字:数论    ( 2885个结果
[hdu 4959]Poor Akagi 数论(卢卡斯数,二次域运算,等比数列求和)
Poor Akagi Time Limit: 30000/15000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 131    Accepted Submission(s): 29 Problem Description Akagi is not onl...
分类:其他好文   时间:2014-08-21 09:53:13    阅读次数:307
数论 --- 斐波纳挈数列公式的变形
FibonacciTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3515Accepted Submission(s): 1601Problem D...
分类:其他好文   时间:2014-08-20 22:25:23    阅读次数:234
矩阵总结
矩阵题目总结...
分类:其他好文   时间:2014-08-20 18:09:02    阅读次数:218
CF449C Jzzhu and Apples (筛素数 数论?
Codeforces Round #257 (Div. 1) CCodeforces Round #257 (Div. 1) ECF450EC. Jzzhu and Applestime limit per test1 secondmemory limit per test256 megabytes...
分类:移动开发   时间:2014-08-20 16:08:02    阅读次数:329
UVA 718 - Skyscraper Floors(数论)
UVA 718 - Skyscraper Floors题目链接题意:在一个f层高的楼上,有e个电梯,每一个电梯有x,y表示y + k * x层都能够到,如今要问从a层是否能到达b层(中间怎么换乘电梯不限制)思路:对于两个电梯间能不能换乘,仅仅要满足y[i] + xx x[i] == y[j] + y...
分类:其他好文   时间:2014-08-19 22:04:25    阅读次数:303
2014多校训练九(HDU 4960 HDU 4961 HDU 4965 HDU 4968 HDU 4969 HDU 4970)
HDU 4960 Another OCD Patient 题意:给你一串数字  相邻x个数字合并成一个数字(相加)有一定代价  问  最少花费多少使得串变成回文串 思路: 读完题感觉像dp  数据范围也像  就开始想怎么表示状态  最简单的应该想到dp[i][j]表示i到j区间变成回文串的最小花费  状态想好了想做法  考虑将串分成AAAABBBBBBBCCC三段  即所有A合成一个数字  ...
分类:其他好文   时间:2014-08-19 20:52:45    阅读次数:342
hdu 4961 数论 o(nlogn)
Boring SumTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 60Accepted Submission(s): 30 Problem ...
分类:其他好文   时间:2014-08-19 20:25:15    阅读次数:200
素数推断算法(高效率)
chuanbindeng 的 素数推断算法关于素数的算法是信息学竞赛和程序设计竞赛中常考的数论知识,在这里我跟大家讲一下寻找一定范围内素数的几个算法。看了以后相信对大家一定有帮助。 正如大家都知道的那样,一个数 n 假设是合数,那么它的全部的因子不超过sqrt(n)--n的开方,那么我们能够用这个性...
分类:其他好文   时间:2014-08-19 18:48:45    阅读次数:262
UVA 10791 Minimum Sum LCM (数论)
LCM (Least Common Multiple) of a set of integers is defined as the minimum number, which is a multiple of all integers of that set. It is interesting to note that any positive integer can be expressed...
分类:其他好文   时间:2014-08-18 23:38:13    阅读次数:275
UVA 10375 Choose and divide(数论)
The binomial coefficient C(m,n) is defined as m! C(m,n) = -------- n!(m-n)! Given four natural numbers p, q, r, and s, compute the the result of dividing C(p,q) by C(r,s). T...
分类:其他好文   时间:2014-08-18 23:37:43    阅读次数:274
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!