随笔分类 -  数论

摘要:题目链接:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=98634#problem/BDescription:I was trying to solve problem'1234 - Harmonic Number', I wrote t... 阅读全文
posted @ 2015-11-09 15:32 搁浅の记忆 阅读(271) 评论(0) 推荐(0)
摘要:Problem Description:In arithmetic and computer programming, the extended Euclidean algorithm is an extension to the Euclidean algorithm, which compute... 阅读全文
posted @ 2015-10-29 16:12 搁浅の记忆 阅读(168) 评论(0) 推荐(0)
摘要:Problem Description:Goffi is doing his math homework and he finds an equality on his text book:gcd(n−a,n)×gcd(n−b,n)=n^k.Goffi wants to know the numbe... 阅读全文
posted @ 2015-10-28 13:34 搁浅の记忆 阅读(269) 评论(0) 推荐(0)
摘要:题目链接:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=96545#problem/BDescriptionA line on the plane is described by an equationAx + By + C = 0. Y... 阅读全文
posted @ 2015-10-26 14:29 搁浅の记忆 阅读(227) 评论(0) 推荐(0)