[Huawei OD test questions] Optimal nucleic acid detection point (python version) 100% pass rate super detailed code comment code interpretation

[Huawei OD machine test real questions 2022&2023] real test catalog @click here @
[Huawei OD machine test real questions] signal transmission and reception & trial reading & @click here @
[Huawei OD machine real test questions] rent a car to ride the greenway & trial reading & @点here@

Preferred nucleic acid detection point

Title description:

Zhang San is going on a business trip and needs nucleic acid testing. He needs to complete the nucleic acid testing before the specified time.
Please help him find a nucleic acid testing site that meets the requirements.

1. Give the distance of a group of nucleic acid testing points and the current number of people at each nucleic acid testing point
2. Give the departure time when Zhang San wants to do nucleic acid. The departure time is a multiple of 10 minutes and give Zhang San the latest time to do nucleic acid. End time
3. The distance given in the title is an integer, the unit is kilometers, and the time is 1 minute as a basic unit

When looking for nucleic acid points, there are the following restrictions:

  • On the way to the nucleic acid point,

Guess you like

Origin blog.csdn.net/weixin_45541762/article/details/130611462