Goblin Garden Guards
题意
给n个哥布林的位置(x,y),给出m个圆,对于每一个圆,输出最大的不在圆内的哥布林数目。
由于哥布林的位置是整数,那么对于圆,可以预处理出距离圆心0~r范围内的x最大偏差值和y的最大偏差值,如果哥布林的x,y与圆心的偏差值有一者在最大偏差值之外,就cnt++。
看!代码
| 1 | //拿的队友的代码 | 
            缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
 npm i hexo-generator-json-content --save
            3、在根目录_config.yml里添加配置:
  jsonContent:
    meta: false
    pages: false
    posts:
      title: true
      date: true
      path: true
      text: false
      raw: false
      content: false
      slug: false
      updated: false
      comments: false
      link: false
      permalink: false
      excerpt: false
      categories: false
      tags: true