摘要:
Bob’s RaceTime Limit: 5000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2833Accepted Submission(s): 917Problem D... 阅读全文
摘要:
裴蜀定理(或贝祖定理,Bézout's identity)得名于法国数学家艾蒂安·裴蜀。1.裴蜀定理:对任何整数a、b,存在整数x、y,使得ax + by = (a, b)2.重要推论:整数a与b互质的充要条件是,存在整数x、y,使得ax + by = 13. n个整数之间:设a1,a2,a3...... 阅读全文
摘要:
Hierarchical NotationTime Limit:2 Seconds Memory Limit:131072 KBIn Marjar University, students in College of Computer Science will learn EON (Edward O... 阅读全文
摘要:
DominationTime Limit:8 Seconds Memory Limit:131072 KB Special JudgeEdward is the headmaster of Marjar University. He is enthusiastic about chess and o... 阅读全文
摘要:
组合数取模即求的值,根据,和的取值范围不同,采取的方法也有所区别。(1)和 杨辉三角,C(k+n-1,n-1) = C(n+k-1,k),那么由于和的范围小,直接两层循环即可。(2)和,并且是素数 这个问题有个叫做Lucas的定理,定理描述是,如果 那么得到 即C(n,m)模p等于p进制数上各位的C... 阅读全文
摘要:
Anniversary partyTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6401Accepted Submission(s): 2862P... 阅读全文
摘要:
C. Gerald's Hexagontime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputGerald got a very curious hex... 阅读全文
摘要:
10723 - Cyborg GenesTime limit: 3.000 secondsProblem FCyborgGenesTime Limit1 SecondSeptember 11, 2132.This is the day that marks the beginning of the ... 阅读全文
摘要:
1220 - Party at Hali-BulaTime limit: 3.000 secondsDear Contestant,I'm going to have a party at my villa at Hali-Bula to celebrate my retirement from B... 阅读全文
摘要:
12186 - Another CrisisTime limit: 3.000 secondsA couple of years ago, a new world wide crisis started, leaving many people with economical problems. S... 阅读全文