摘要: 题目链接http://acm.hdu.edu.cn/showproblem.php?pid=2669 题目大意:找出一组x,y使ax+by=1,如果找不出则输出“sorry”。 解题思路:有两个点需要注意,一个点:由定理可得,如果a,b不互质即__gcd(a,b)大于1就不满足上式,这时我们就需要输 阅读全文
posted @ 2019-08-14 14:39 voids5 阅读(75) 评论(0) 推荐(0)
摘要: Sample Input210 212 2S... 阅读全文
posted @ 2019-08-12 17:15 voids5 阅读(99) 评论(0) 推荐(0)
摘要: 题目链接:http://poj.org/st... 阅读全文
posted @ 2019-08-08 21:18 voids5 阅读(85) 评论(0) 推荐(0)
摘要: 原文链接:http://acm.hdu.ed... 阅读全文
posted @ 2019-08-07 21:08 voids5 阅读(90) 评论(0) 推荐(0)
摘要: 链接:http://acm.hdu.edu.... 阅读全文
posted @ 2019-08-07 15:30 voids5 阅读(73) 评论(0) 推荐(0)
摘要: 原文链接:http://www.cnblog... 阅读全文
posted @ 2019-08-07 15:04 voids5 阅读(90) 评论(0) 推荐(0)
摘要: B. 蚂蚁觅食(二)单点时限: 1.0 se... 阅读全文
posted @ 2019-08-06 18:48 voids5 阅读(223) 评论(0) 推荐(0)
摘要: In the age of televisi... 阅读全文
posted @ 2019-08-06 18:01 voids5 阅读(124) 评论(0) 推荐(0)
摘要: Farmer John and Betsy ... 阅读全文
posted @ 2019-08-05 20:30 voids5 阅读(100) 评论(0) 推荐(0)
摘要: 某省调查乡村交通状况,得到的统计表中列出了任... 阅读全文
posted @ 2019-08-05 13:55 voids5 阅读(100) 评论(0) 推荐(0)