摘要: Visible Lattice PointsTime Limit:1000MSMemory Limit:65536KTotal Submissions:5356Accepted:3136DescriptionA lattice point (x,y) in the first quadrant (x... 阅读全文
posted @ 2014-07-23 16:03 Run_dream 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 本来不想写的以前写过一次没过现在每次打开HDU都会显示没完成看着不爽直接暴力肯定超时其实那数组遍历一次就可以了注意下标变化的条件 1 #include 2 3 using namespace std; 4 5 int main() 6 { 7 int T; 8 cin>>T; ... 阅读全文
posted @ 2014-07-23 11:45 Run_dream 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 约会果然是件头疼的问题看起来很简单列了个式子就不知道怎么做了数论题欺负我数学不好Attention:(Ax+b)%C==0有解条件为 b%gcd(A,C)==0;证明在代码里 1 #include 2 #include 3 using namespace std; 4 5 long long ... 阅读全文
posted @ 2014-07-23 09:17 Run_dream 阅读(244) 评论(0) 推荐(0) 编辑