Editorial for Doraemon và cuộc phiêu lưu ở hòn đảo kho báu (Bản dễ)


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.

Bài này ta chỉ việc làm theo đề bài: Kiểm tra tất cả bộ \((i, j)\) (\(L \leq i < j \leq R\)) và tìm giá trị tối thiểu của \((i \times j) \bmod M\).

Độ phức tạp: \(O((R-L)^2)\)



Comments

There are no comments at the moment.