• [A] Annie

  • 时间限制: 1000 ms 内存限制: 65535 K
  • 问题描述
  • Annie is a kawaii loli in League of Legends. High Councilor Kiersta Mandrake said that Annie may be one of the most powerful champions ever to have fought in a Field of Justice.

    Annie has an ability, Molten Shield(熔岩护盾). This shield increases Annie's armor and magic resist and damages enemies who hit Annie with basic attacks.

    This ability keeps for 5 seconds and cost 10 seconds to cold down to cast next Molten Shield.

    We assume that Annie casts the Molten at the very beginning of 0 second. And she casts the next Molten Shield when it colds down immediately. The magic damage of the base attack when she is under the shield is 60 + (0.2 * Spell Power).

    We give you the spell power of Annie's and the time of enemies' each base attack. You should tell me how much damage Annie made via the Molten Shield.

  • 输入
  • This problem contains several cases.
    The first line of each case contains two integers N and S, indicate the number of attack times and the spell power of Annie's. (0 < N ≤ 1000, 0 < s ≤ 1000)
    Then N lines followed. Each line is a decimal number that indicates the time moment of that base attack. The decimal number will not exceeds 1000.
  • 输出
  • You should output the magic damage via the Molten Shield. 1 decimal places reserved.
  • 样例输入
  • 5 301
    2.00
    5.01
    5.00
    8.00
    14.03
  • 样例输出
  • 360.6
  • 提示
  • 来源
  • XadillaX
  • 操作

显示春菜