摘要: 原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1576 分析:等式枚举法,由题意可得:, ,代入 , 得:,把变量 合在一起得: ;即满足 为 倍数,因为 ,所以解时唯一的。 使用... 阅读全文
posted @ 2018-07-24 20:55 laugh12321 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 原题链接:https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1013 首先得考虑到时间复杂度问题,由于题目中(0 typedef long long ll;const ll mod... 阅读全文
posted @ 2018-07-24 20:15 laugh12321 阅读(18) 评论(0) 推荐(0) 编辑