Editorial for Doraemon tự kỷ với trò chơi mới
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.
Bài này rất đơn giản, chỉ cần làm theo yêu cầu đề bài: Với mỗi ô trống, đặt bánh rán nâu vào và kiểm tra xem có thể lật được bao nhiêu bánh rán trắng là xong.
Độ phức tạp: \(O(N^3)\), \(O(N^2 \log N)\) hoặc \(O(N^2)\) \((N = 8)\) tùy cách cài đặt.
Comments