摘要: 取石子游戏 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 36113 Accepted: 12213 Description 有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子... 阅读全文
posted @ 2015-04-16 15:08 编程菌 阅读(120) 评论(0) 推荐(0) 编辑
摘要: E - A^X mod P 题目链接:http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2605 Time Limit:5000MS Memory Limit:65536KB ... 阅读全文
posted @ 2015-04-16 08:26 编程菌 阅读(391) 评论(0) 推荐(0) 编辑
摘要: find the nth digit 题目链接http://acm.hdu.edu.cn/showproble... 阅读全文
posted @ 2015-04-15 22:15 编程菌 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Heritage from father Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131070/65535 K (Java/Others) Total Submission(s): 5859 Accepted Subm... 阅读全文
posted @ 2015-04-14 19:41 编程菌 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Fibonacci Again Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 42109 Accepted Submissio... 阅读全文
posted @ 2015-04-13 22:26 编程菌 阅读(113) 评论(0) 推荐(0) 编辑
摘要: The area Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 8279 Accepted Submission(s): 58... 阅读全文
posted @ 2015-04-13 22:14 编程菌 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 神、上帝以及老天爷 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 25596 Accepted Submission(s): ... 阅读全文
posted @ 2015-03-14 09:38 编程菌 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Problem Description 2007年到来了。经过2006年一年的修炼,数学神童zouyu终于把0到100000000的Fibonacci数列(f[0]=0,f[1]=1;f[i] = f[i-1]+f[i-2](i>=2))的值全部给背了下来。接下来,CodeStar决定要考考... 阅读全文
posted @ 2015-03-13 22:15 编程菌 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 开始很糊涂的以为要先转变成十进制再转成八进制,结果因为数量级过大,发现此路不通。但是转2进制没有灵感,于是看了别人的代码。 #include #include using namespace std;int arr[10000001];int main(){ int n,len_str,i... 阅读全文
posted @ 2015-03-02 11:11 编程菌 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 水题,出错只在于考虑问题的不全面, 给几组帮助我ac的测试数据 输入00512312320507750051231232050775005123123205077555512345(别漏了) 《《这个就是我出错的数据输出0 77 123123200 77 123123200 77 12312... 阅读全文
posted @ 2015-02-17 10:37 编程菌 阅读(153) 评论(0) 推荐(0) 编辑