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

Show all messages Hide all messages

=========== Input =====================
Sample input #1
4
0011
0110

Sample input #2
4
1100
1100

Sample input #3
6
101010
101010

============= Output =================
Sample output #1
22121112

Sample output #2
Impossible

Sample output #3
111111222222
OK. I found that my program gave me the wrong answer when the input is as follow:

1
0
0

I fixed this, and I still got WA#1. I need some hints.