The problem link is : Problem - 282C - Codeforces
My solution : #include<bits/stdc++.h> using namespace std; #define fastio ios_ba - Pastebin.com
My approach is that only these operations can happen :
// 11 → 10 01
// 10 → 11
// 01 → 11
// 00 → 00
It is failing on this test case:
11000001
00000001
My ans is “NO” but the given answer is “YES”. How will “11” convert to “00”?