
数论
文章平均质量分 88
qq1319479809
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #328 (Div. 2) B. The Monster and the Squirrel
B. The Monster and the Squirreltime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAri the monster always wakes原创 2015-11-03 23:50:35 · 368 阅读 · 0 评论 -
BestCoder Round #66 (div.2)1003 GTW likes function HDU5597
GTW likes function Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)原创 2015-12-18 22:07:51 · 395 阅读 · 0 评论 -
Codeforces Round #324 (Div. 2) 584D. Dima and Lisa
解题报告: Codeforces Round #324 (Div. 2)D. Dima and Lisatime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output原创 2015-10-09 22:04:16 · 301 阅读 · 0 评论 -
FOJ有奖月赛-2015年11月 Problem B 函数求解
Problem B 函数求解Accept: 171 Submit: 540Time Limit: 1000 mSec Memory Limit : 32768 KB Problem Description给出n,求f(n)。 Input第一行一个正整数T,表示数据组数。 接下来T行,每行一个正整数n。 T Output对于每组数据,输原创 2015-11-15 19:22:46 · 424 阅读 · 0 评论 -
BestCoder Round #62 (div.2) HDU 5563 Clarke and five-pointed star
Clarke and five-pointed star Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)原创 2015-11-14 23:37:40 · 403 阅读 · 0 评论 -
Codeforces Round #320 (Div. 2) 578A. A Problem about Polyline
解题报告:Codeforces Round #320 C. A Problem about Polylinetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outpu原创 2015-10-09 21:22:16 · 387 阅读 · 1 评论 -
Codeforces Round #317 (Div. 2) 571A. Lengthening Sticks 组合数学
解题报告:Codeforces Round #317 EditorialC. Lengthening Stickstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandar原创 2015-10-09 21:00:06 · 332 阅读 · 0 评论 -
斐波那契数列的性质
fibonacci数列的性质:1.gcd(fib(n),fib(m))=fib(gcd(n,m))证明:可以通过反证法先证fibonacci数列的任意相邻两项一定互素,然后可证n>m时gcd(fib(n),fib(m))=gcd(fib(n-m),fib(m)),递归可求gcd(fib(n),fib(m))=gcd(fib(k),fib(l)),最后k=l,不然继续递归。K转载 2015-10-09 19:52:22 · 1145 阅读 · 0 评论 -
BestCoder Round #54 (div.2) HDU5428 The Factor
The Factor Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)原创 2015-10-09 20:43:27 · 361 阅读 · 0 评论 -
BestCoder 1st Anniversary ($) HDU5312 Sequence
Sequence Time Limit: 2000/2000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)原创 2015-10-09 20:20:49 · 309 阅读 · 0 评论 -
Codeforces Round #324 (Div. 2) 584B. Kolya and Tanya 组合数学
解题报告: Codeforces Round #324 (Div. 2)B. Kolya and Tanyatime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output原创 2015-10-09 21:58:24 · 313 阅读 · 0 评论 -
51nod 1433 0和5
1433 0和5题目来源: CodeForces基准时间限制:1 秒 空间限制:131072 KB 分值: 10 难度:2级算法题 收藏 关注小K手中有n张牌,每张牌上有一个一位数的数,这个字数不是0就是5。小K从这些牌在抽出任意张(不能抽0张),排成一行这样就组成了一个数。使得这个数尽可能大,而且可以被90整除。注意原创 2015-11-05 23:58:08 · 520 阅读 · 0 评论 -
51nod 1435 位数阶乘 找规律
1435 位数阶乘题目来源: CodeForces基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 收藏 关注X是一个n位数的正整数 (x=a0a1...an−1) 现在定义 F(x)=∏i=0n−1(ai!) , 比如F(135)=1!*3!*5!=720.我们给定一个原创 2015-11-05 21:54:09 · 448 阅读 · 0 评论 -
Codeforces Round #328 (Div. 2) C. The Big Race
C. The Big Racetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVector Willman and Array Bolt are the two mo原创 2015-11-03 23:44:44 · 295 阅读 · 0 评论 -
51nod 1005 大数加法 大数运算
大数运算修改 隐藏话题1005 大数加法基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 收藏 关注给出2个大整数A,B,计算A+B的结果。Input第1行:大数A第2行:大数B(A,B的长度 Output原创 2015-12-19 15:54:22 · 1887 阅读 · 1 评论