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 1501. Sense of Beauty

Useful test cases
Posted by Pravă Felix-Mihai 28 Apr 2021 19:31
I checked them using my AC algorithm

6
100110
000111
-> Impossible

10
1001100110
0101010101
-> 11111111112222222222

10
1001110000
0011111010
-> 11111211221212122222

11
01011100000
01111011001
-> 1111121112121212222222

14
10011111100101
00000110101010
-> 1111121212121111112222222222

18
100111111001010010
000001101010100111
-> 111112121212111111222222222222121112

18
100111111001010011
000001101010100011
-> Impossible