We will hold AtCoder Regular Contest-- 219.
- Contest URL: https://atcoder.jp/contests/arc219
- Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20260510T2100&p1=248
- Duration: 120 minutes
- Writer: sheyasutaka, sounansya, kyopro_friends
- Tester: sheyasutaka, sounansya
- Rated range: 800 ~ 2399
- Point Values: 400-400-500-500-600-600-700
We are looking forward to your participation!








qp
qp
What a B... I penaltied it 8 times because of an array,I should have changed it to a vector earlier..
I penaltied A 9 times...
First time to participate in ARC, F and G are so harrrrrrrrrd.
The only other binary string a binary string is not similar to is its bitwise NOT, or from switching all the 0s to 1s and 1s to 0s. We call this string the converse (this isn't a formal name I just like the word).
For each binary string, check if the converse exists. If it does not, print "Yes" and the binary string. We can obviously check this in $$$O(M)$$$ for each string using an unordered set, or $$$O(1)$$$ if we convert binary strings to numbers with XL integer types. If every single binary string has a converse in the set, print "No".
Time complexity: $$$O(NM)$$$
I am curious, could you just use for loops in this approach so that for each element in the binary string you find the opposite value (i.e, 10010 would be switched to 01101, but like steps so step 1, find opposite of 1, 0 add it to a string, find opposite of 0, 1 add t to the 0, etc.) and if that exists then print yes, otherwise no? i feel like my idea would be a bit too slow if strings are large or smth though