eolymp
bolt
Try our new interface for solving problems
Problems

Building Construction

published at 12/15/22, 8:05:13 am

По условию n <= 10^5. Решение за O(n^2) проходит из-за слабых тестов.