杭电 HDU ACM 1898 Sempr == The Best Problem Solver?

As is known to all, Sempr(Liangjing Wang) had solved more than 1400 problems on POJ, but nobody know the days and nights he had spent on solving problems.Xiangsanzi(Chen Zhou) was a perfect problem solver too. Now this is a story about them happened two years ago.On March 2006, Sempr & Xiangsanzi were new comers of hustacm team and both of them want to be "The Best New Comers of March", so they spent days and nights solving problems on POJ.Now the problem is below: Both of them are perfect problem solvers and they had the same speed, that is to say Sempr can solve the same amount of problems as Xiangsanzi, but Sempr enjoyed submitting all the problems at the end of every A hours but Xiangsanzi enjoyed submitting them at the end of every B hours. In these days, static(Xiaojun Wu) was the assistant coach of hustacm, and he would check the number of problems they solved at time T. Give you three integers A,B,and T, you should tell me who is "The Best New Comers of March". If they solved the same amount of problems, output "Both!". If Sempr or Xiangsanzi submitted at time T, static would wait them.

,蝙蝠黑暗中闯荡,树木默默的成长,蝴蝶破蛹后飞翔,

杭电 HDU ACM 1898 Sempr == The Best Problem Solver?

相关文章:

你感兴趣的文章:

标签云: