SGU106 - The equation
摘要:
106. The equationtime limit per test: 0.5 sec.memory limit per test: 4096 KBThere is an equation ax + by + c = 0. Given a,b,c,x1,x2,y1,y2 you must determine, how many integer roots of this equation are satisfy to the following conditions : x1<=x<=x2, y1<=y<=y2. Integer root of this equat 阅读全文
posted @ 2013-03-12 23:55 仗剑奔走天涯 阅读(359) 评论(0) 推荐(0) 编辑