摘要:
【bzoj4173】数学 2015年7月14日2,5233 Description Input 输入文件的第一行输入两个正整数 。 Output 如题 Sample Input 5 6 Sample Output 240 HINT N,M<=10^15 证明还是比较靠谱的。 嗯嗯 1 #includ 阅读全文
摘要:
FJ打算好好修一下农场中某条凹凸不平的土路。按奶牛们的要求,修好后的路面高度应当单调上升或单调下降,也就是说,高度上升与高度下降的路段不能同时出现在修好的路中。 整条路被分成了N段,N个整数A_1, … , A_N (1 <= N <= 2,000)依次描述了每一段路的高度(0 <= A_i <= 阅读全文
摘要:
Discrete Logging Given a prime P, 2 <= P < 2 31, an integer B, 2 <= B < P, and an integer N, 1 <= N < P, compute the discrete logarithm of N, base B, 阅读全文
摘要:
组合数学 给出一个网格图,其中某些格子有财宝,每次从左上角出发,只能向下或右走。问至少走多少次才能将财宝捡完。此对此问题变形,假设每个格子中有好多财宝,而每一次经过一个格子至多只能捡走一块财宝,至少走多少次才能把财宝全部捡完。 Input 第一行为正整数T,代表数据组数。 每组数据第一行为正整数N, 阅读全文
摘要:
Treasure Exploration Have you ever read any book about treasure exploration? Have you ever see any film about treasure exploration? Have you ever expl 阅读全文
摘要:
Air Raid Consider a town where all the streets are one-way and each street leads from one intersection to another. It is also known that starting from 阅读全文