-->
当前位置:首页 > 题库

PROGRAMMING:Shooting results

Luz5年前 (2021-05-10)题库413
![ Untitled. PNG] (~ / fc9ab3c8-329d-49e6-a0e0-e511bb0f45b6. PNG)
Here's a 10m air pistol target. The diameter of ring 10 is 11.5mm, ring 9 is 27.5mm and ring 8 is 43.5mm. The diameter of ring 7-10 is 59.5mm, and the diameter of outer ring is 155.5mm. The diameter difference of 1-6 rings is constant.
When all the loop marks are erased, can you still judge the score?
###Input format:
Enter the linear distance from the shooting point to the bull's-eye given by a player in a row, in micrometers (10 − 3mm).
###Output format:
According to the input distance, output the ring value of the player. Note: the miss distance is 0.
###Input sample 1:
```in
thirteen thousand and one hundred
```
###Output sample 1:
```out
nine
```
###Input example 2:
```in
twenty-nine thousand seven hundred and fifty
```
###Output example 2:
```out
seven
```
###Input sample 3:
```in
seventy-eight thousand
```
###Output example 3:
```out
0
```
###Tips
This topic is selected from "puzzle a 2021 challenge"< br>





answer:If there is no answer, please comment