![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA
nucleare
这个作者很懒,什么都没留下…
展开
-
a==b? java
A == B ? HDU - 2054 Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO".Inputeach test case contains two numbers A and B. Outputfor each case, if A is e...原创 2018-10-09 20:43:39 · 609 阅读 · 0 评论 -
大数加法 51Nod - 1005
大数加法 51Nod - 1005 给出2个大整数A,B,计算A+B的结果。Input第1行:大数A 第2行:大数B (A,B的长度 <= 10000 需注意:A B有可能为负数)Output输出A + BSample Input68932147586468711654886Sample Output537643802472import...原创 2018-10-09 21:15:03 · 166 阅读 · 0 评论 -
大菲波数 HDU - 1715
Fibonacci数列,定义如下: f(1)=f(2)=1 f(n)=f(n-1)+f(n-2) n>=3。 计算第n项Fibonacci数值。 Input输入第一行为一个整数N,接下来N行为整数Pi(1<=Pi<=1000)。 Output输出为N行,每行为对应的f(Pi)。 Sample Input512345Sample Out...原创 2018-10-09 21:35:15 · 141 阅读 · 0 评论 -
A/B HDU - 1576
A/B HDU - 1576 要求(A/B)%9973,但由于A很大,我们只给出n(n=A%9973)(我们给定的A必能被B整除,且gcd(B,9973) = 1)。Input数据的第一行是一个T,表示有T组数据。 每组数据有两个数n(0 <= n < 9973)和B(1 <= B <= 10^9)。Output对应每组数据输出(A/B)%9973...原创 2018-10-09 22:00:18 · 165 阅读 · 0 评论 -
Lucky Man ZOJ - 4005 (JAVA大整数+牛顿迭代法开根)
Lucky Man ZOJ - 4005 BaoBao is keen on collection. Recently he is abandoning himself to Kantai Collection, especially to collecting cute girls, known as "Fleet Girls".There are various types ...原创 2018-10-22 21:28:48 · 481 阅读 · 0 评论 -
Game of Taking Stones HDU - 5973 (威佐夫博弈+Java的高精度)
Game of Taking Stones HDU - 5973 Two people face two piles of stones and make a game. They take turns to take stones. As game rules, there are two different methods of taking stones: One scheme is...转载 2018-10-23 21:12:46 · 187 阅读 · 0 评论