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

PROGRAMMING:Grab the floor

Luz5年前 (2021-05-10)题库437
Blizzard's anniversary celebration, in the forum launched the campaign of building and seizing floors, the lucky one got a sigh of frost, so everyone flocked to start seizing buildings, your task is to find the lucky one.
###Input format:
Enter three integers in the first line: n, K, s, n is the total number of floors, no more than 1000, K is the number of floors between which the lucky person is generated, s is the floor number of the first lucky person, and the floors are numbered from 1. The following N lines are the nicknames of the followers on each floor. The nickname is a string of no more than 20 characters, without spaces. It used to be very simple, but frost sigh was too tempting, so many people repeatedly posted, hoping to get the floor, but blizzard company stipulated that everyone can only get 1 frost sigh at most, if they have already got it, they have to skip it.
###Output format:
For each group of input, output the nickname of the lucky one, one line at a time. If no one is selected, output no one was chosen.
###Input sample 1:
Here is a set of inputs. For example:
```in
10 3 1
Underneath
Weddinginthedream
Queen
WaitingforLove
Drinktowind
Bodyontheocean
Dark
Lolita
Thedreamofyou
Smilelikeflower
```
###Output sample 1:
The corresponding output is given here. For example:
```out
Underneath
WaitingforLove
Dark
Smilelikeflower
```
###Input sample 2:
Here is a set of inputs. For example:
```in
2 3 3
Underneath
Weddinginthedream
```
###Output sample 1:
The corresponding output is given here. For example:
```out
No one was chosen
```







answer:If there is no answer, please comment