반응형 백준 157481 03.10. Rest Stops[Greedy Algorithm][백준 15748] https://www.acmicpc.net/problem/15748 15748번: Rest Stops The first line of input contains four integers: $L$, $N$, $r_F$, and $r_B$. The next $N$ lines describe the rest stops. For each $i$ between $1$ and $N$, the $i+1$-st line contains two integers $x_i$ and $c_i$, describing the position of the $i$-th rest st www.acmicpc.net Algorithm classification : Greedy Algorithm, Sorting 03.10.1. Proble.. 2021. 11. 10. 이전 1 다음 반응형