Sprinklers 6- (a)

Sprinklers 6- (a)

 

  • Memory limit: 64MB Time limit: 3000ms special sentence: No
  •  
  • By number: 364 Submissions: 699 Difficulty: 3


 

Subject description:

An existing lawn, length 20 m, width 2 m, to be placed in the horizontal center line of the radius Ri of the spray means, each spray means effect will be to make it a radius Ri is a real number (0 <Ri <15) wetted circle, which means there is sufficient water i (1 <i <600) months, and must be able to wet the entire lawn, you have to do is: Sprinklers selection as little as possible, the all wet the entire lawn.

Enter a description:

第一行m表示有m组测试数据
每一组测试数据的第一行有一个整数数n,n表示共有n个喷水装置,随后的一行,有n个实数ri,ri表示该喷水装置能覆盖的圆的半径。

Output Description:

输出所用装置的个数

Sample input:

copy

2
5
2 3.2 4 4.5 6 
10
1 2 3 1 2 1.2 3 1.1 1 2

Sample output:

2
5

 

 

 

 

 

Published 29 original articles · won praise 3 · Views 3184

Guess you like

Origin blog.csdn.net/qq_38436175/article/details/93394106