题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=1250 hdu1250: Hat's Fibonacci Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9442 Accepted Submission(s): 3096 Problem Description A Fibonacci…
题目链接 https://www.patest.cn/contests/pat-a-practise/1065 思路 因为 a 和 b 都是 在 long long 范围内的 但是 a + b 可能会溢出 long long 但是 不会溢出 long double 所以 用long double 就能轻松解决了 或者 用大数加法 也行 AC代码 #include <cstdio> #include <cstring> #include <ctype.h> #includ…
A+B Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 811 Accepted: 371 Description The Research Institute of Given Strings (RIGS) is a well-known place where people investigate anything about strings. Peter works in the department of st…