打表
文章平均质量分 80
JW12138
既然出生在这个世上,我就没想着活着回去!!!
展开
-
How Many Nines(ZOJ-3950)
If we represent a date in the format YYYY-MM-DD (for example, 2017-04-09), do you know how many 9s will appear in all the dates between Y1-M1-D1 and Y2-M2-D2 (both inclusive)?Note that you should ta原创 2017-05-23 20:37:02 · 420 阅读 · 0 评论 -
Alice and Bob(山东省第四届ACM大学生程序设计竞赛 )
Problem Description Alice and Bob like playing games very much.Today, they introduce a new game. There is a polynomial like this: (a0*x^(2^0)+1) * (a1 * x^(2^1)+1)*.......*(an-1 * x^(2^(n-原创 2017-05-20 21:53:14 · 202 阅读 · 0 评论 -
A^X mod P(山东省第四届ACM大学生程序设计竞赛 )
Problem DescriptionIt's easy for ACMer to calculate A^X mod P. Now given seven integers n, A, K, a, b, m, P, and a function f(x) which defined as following.f(x) = K, x = 1f(x) = (a*f(x-1) + b)原创 2017-05-20 21:56:51 · 310 阅读 · 0 评论