Editorial for HSG THPT Thanh Hóa 2022 - Robot


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Do trong ~1~ bước, robot có thể thay đổi giá trị của cả hoành độ và tung độ nên việc di chuyển từ ~x_1~ đến ~x_2~ và từ ~y_1~ đến ~y_2~ có thể coi thành ~2~ phần riêng biệt. Đáp án là ~\max(|x_1 - x_2|, |y_1 - y_2|)~.


Comments

Please read the guidelines before commenting.


There are no comments at the moment.