Editorial for Bàn cờ kỳ lạ
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.
Submitting an official solution before solving the problem yourself is a bannable offence.
Authors:
Trung vị sẽ được tính bằng công thức \(\frac{1+n}{2}\).
Trường hợp 1: Nếu \(1\) trong \(2\) có thể tới sớm hơn thì người đó sẽ thắng.
Trường hợp 2: Nếu cả \(2\) cùng ở điểm đến thì sẽ hoà.
Trường hợp 3: Nếu cả \(2\) cùng cách đều với trung vị thì Alice sẽ thắng vì Alice được đi lượt đầu tiên
Comments