随笔分类 -  CF

摘要:原题:http://codeforces.com/contest/338/problem/D题解:基本题意:是否存在。可以设:整理得:这样就可以用合并方程的方法求出x和lcm,而行数i就为lcm。检验答案是否正确就可以了。注意:这道题数较大要用到快速乘。#includ... 阅读全文
posted @ 2018-12-23 21:15 Exception2017 阅读(242) 评论(0) 推荐(0)
摘要:Disclaimer: there are lots of untranslateable puns in the Russian version of the statement, so there is one more reason for you to lea... 阅读全文
posted @ 2018-11-03 22:13 Exception2017 阅读(183) 评论(0) 推荐(0)