Codeforces Round #433 (Div. 2) B.Maxim Buys an Apartment(找规律+技巧)
Maxim wants to buy an apartment in a new house at Line Avenue of Metropolis. The house has n apartments that are numbered from 1 to n and are arranged in a row. Two apartments are adjacent if their indices differ by 1. Some of the apartments can already be
复制链接