| # | User | Rating |
|---|---|---|
| 1 | jiangly | 3810 |
| 2 | Benq | 3676 |
| 3 | Kevin114514 | 3655 |
| 4 | maroonrk | 3463 |
| 5 | strapple | 3447 |
| 6 | Um_nik | 3387 |
| 7 | heuristica | 3322 |
| 8 | turmax | 3317 |
| 9 | tourist | 3307 |
| 10 | jiangbowen | 3291 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 156 |
| 2 | nik_exists | 150 |
| 2 | maspy | 150 |
| 4 | Um_nik | 143 |
| 5 | Errichto | 139 |
| 6 | adamant | 137 |
| 7 | AmShZ | 135 |
| 8 | maroonrk | 133 |
| 9 | BledDest | 132 |
| 10 | qwexd | 129 |
|
0
understood Thanks buddy |
|
0
In 2228B lets say n=7 x1=1 x2=4 and k=2 1st second -Now Remilia moves to x2=5 from x2=4 optimally, this is the optimal move for Remilia because going to x2=3 will decrease the distance between the two. -Since Remilia chose x2=5, Reimu will try to minimize distance so he will come to x1=7 from x1=1 optimally. 2nd second -Now Remilia moves to x2=4 from x2=5 optimally. -Since Remilia chose x2=4, Reimu will try to minimize distance so he will come to x1=6 from x1=7 optimally. further seconds Now Remilia cannot move anymore so she will stay at x2=4 and Reimu is at x1=6 and the difference between then is 2 So ans is 2(initial second) + 2(last differene between the two after Remilia is out of moves)=4 But according to this tutorial ans = min(7-(4-1),(4-1))+k = min(4,3)+2 = 3+2 = 5 Why? |
| Name |
|---|


