| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 2048 MB | 728 | 656 | 619 | 90.365% |
You may have heard of Flat Land, the 2ドル$D place, but have you heard of Flatter Land, the 1ドル$D place? In Flatter Land, a disease has begun ravaging the cities. To keep the citizens of Flatter Land safe, their experts recommend that they maintain at least $x$ feet of distance between people. If $n$ Flatter Land citizens are standing as close to each other as they safely can, what's the longest distance between any two of them? You can assume that the people themselves take up no space.
The first line tells you the number of people (2ドル \leq n \leq 100$) and the second tells you the recommended distance between people in feet (3ドル \leq x \leq 100$).
You should print the farthest distance between any two people in the group assuming that the distance from one person to the next is exactly the recommended distance. You may also assume that people take up no space.
3 6
12
5 10
40
School > CS@Mines > CS@Mines HSPC 2020 A번