摘要:
题目链接题意:两只青蛙从数轴正方向跑,给出各自所在位置, 和数轴长度,和各自一次跳跃的步数,问最少多少步能相遇。分析:(x+m*t) - (y+n*t) = p * L;(t是跳的次数,L是a青蛙跳的圈数跟b青蛙的圈数之差。整个就是路程差等于纬度线周长的整数倍)。(x+m*t)- (y+n*t) =... 阅读全文
摘要:
题目链接FootballTime Limit:1000MSMemory Limit:65536KTotal Submissions:3205Accepted:1632DescriptionConsider a single-elimination football tournament involv... 阅读全文