WA and RE in NOTALLFL

This is my Solution: https://www.codechef.com/viewsolution/36494534
New solution: Still gives WA for some test cases : https://www.codechef.com/viewsolution/36497415

Consider the test input:

1
1 1
1

Edit: No, wait - need K \ge 2. Hmmm.

Here we go:

1
2 2
1 2
2 Likes

I changed for that, still WA for some cases though.

1 Like

Please link to your updated submission.

The link : https://www.codechef.com/viewsolution/36497415
I’ve added that in the original post as well.

1 Like

Consider the test input:

1
9 2
1 2 2 1 2 2 2 2 2
2 Likes

Thanks a lot! I got it working!

1 Like