ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1060. Flip Game

if u have wa 19
Posted by 👑TIMOFEY👑 4 Oct 2022 20:24
i use clear binmask as in 1122, but in 1122 u can chek for answer your board by every change of bit, BUT in THIS problem, u need check board when you finish your changes with bits.
Example u have bits 1101 and next is 1110,
u firstly change 1111 and then 1110 (two iterations because we need to do this iterations on board)
so if u do check on every that iteration its wa19