摘要: 题目:E -A simple stone gameTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticePOJ 3922DescriptionAfter he has learned how to play Nim game, Mike begins to try another stone game which seems much easier.The game goes like this: Two players start the game with a pi 阅读全文
posted @ 2013-07-28 17:26 Teilwall 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=27048#problem/C数学知识:参考:http://youyouaoshu.i.sohu.com/blog/view/87628890.htm(1) 整数的唯一分解定理: 任意正整数都有且只有一种方式写出其素因子的乘积表达式。 A=(p1^k1)*(p2^k2)*(p3^k3)*....*(pn^kn) 【其中p1,p2,p3.....pi均为质数】(2) 约数和公式:对于已经分解的整数A=(p1^k1)*(p2^k2)*(p3^k3)*....*(pn^kn)(S为. 阅读全文
posted @ 2013-07-28 14:46 Teilwall 阅读(208) 评论(0) 推荐(0) 编辑