摘要: 原题链接:UVa10820解析:由题意可得,当表最简时,x与y不能有公因数,即x与y互素。当xy时同理,故最终答案为ans = f + f + 1。最后加上的1是f(1,1)。代码实例:#include#includeusing namespace std;const... 阅读全文
posted @ 2018-08-08 10:29 Dr_Lo 阅读(136) 评论(0) 推荐(0)