기출 문제 / 삼성 2022 Second Half Afternoon Problem 1

Codetree Bread

Recently, Codetree Bread has gained nationwide popularity, making it difficult to find in convenience stores. There are m people who want to get the bread, where the 1st person starts moving from their base camp to the convenience store exactly at 1 minute, the 2nd person at 2 minutes, ..., and the mth person at m minutes.