摘要: 题意:http://acm.hdu.edu.cn/showproblem.php?pid=5980 b乘以GCD(a,b)之后,解方程就行了。 阅读全文
posted @ 2019-10-26 21:31 ZMWLxh 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 题意:http://acm.hdu.edu.cn/showproblem.php?pid=5971 把已经告诉你的把能推测的都推测出来有矛盾就“NO”,剩下的跑二分图,矛盾就“NO”,剩下如果还有没有颜色的“NO”。 阅读全文
posted @ 2019-10-26 21:29 ZMWLxh 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 题意:http://acm.hdu.edu.cn/showproblem.php?pid=5976 首先队友想出了分的越多答案越多。 我们就:2,3,4,5,6.。。多出来的尽量往小了加就行了。 阅读全文
posted @ 2019-10-26 21:26 ZMWLxh 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 题意:http://acm.hdu.edu.cn/showproblem.php?pid=5973 根号5复制后200位就行了,因为BigDecimal不支持开根号,除法二分开根。 阅读全文
posted @ 2019-10-26 21:22 ZMWLxh 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1 #define IOS ios_base::sync_with_stdio(0); cin.tie(0); 2 #include <cstdio>//sprintf islower isupper 3 #include <cstdlib>//malloc exit strcat itoa system("cls") 4 #include <iostream>//pair 5 #include 阅读全文
posted @ 2019-10-26 09:41 ZMWLxh 阅读(160) 评论(0) 推荐(0) 编辑