|
|
|
|
|
by jcims
1297 days ago
|
|
Have you tried describing the algorithm? https://imgur.com/a/7da1vFj I used 'z' instead of 'a' to avoid any possible issues with the article 'a'. I think I messed up the assignment of z[l] at z[r] being after its updated, not sure. But it created the input format, described it and the program ran the first time once i fixed the indents (code formatting is broken for some reason). If I run against the input at the contest page I get NO NO NO NO YES. |
|