编程介的小学生 2017-08-27 08:58 采纳率: 20.5%
浏览 939
已采纳

Master Spark

Master Spark is a powerful bomb that can deal the highest damage with good stability. Kirisame Marisa (霧雨魔理沙) uses her Hakkero (八卦炉) to power the Master Spark. The outline of Master Spark is a parabola with the vertex at (0, 0), where Marisa is located. The second-order coefficient of the parabola is a specific real number a.

Knowing that there are n fairies in the 2D-plane, Marisa wants to damage as many of them as possible by powering a single Master Spark. She can choose any direction to power as she likes.

Input

There are multiple cases. Each case is made up of three lines, the first line contains an integer n (0 ≤ n ≤ 30000) -- the number of fairies in the plane and an real number a (0.1 ≤ a ≤ 10) -- the second-order coefficient of the Master Spark. Both the next two lines contains n real numbers xi and yi -- the coordinates of the i-th fairy.

Output

For each test case, output the the maximum number of fairies Marisa can damage, in format "%d daze\n".

Sample Input

10 0.5
-10 -6 20 1 0 -8 5 -5 30 40
-10 0 0 -5 20 33 13 13 40 30
Sample Output

4 daze

  • 写回答

1条回答

  • threenewbee 2017-09-10 15:53
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 求数学坐标画圆以及直线的算法
  • ¥35 平滑拟合曲线该如何生成
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决