Test Generation
In [October Long Challenge](https://www.codechef.com/OCT19) Chef set the problem [CNNCT2](https://www.codechef.com/OCT19A/problems/CNNCT2). Its editorial, which you may (or may not) find helpful in this problem, is available [here](https://discuss.codechef.com/t/cnnct2-editorial/40191). While preparing the problem, Chef struggled with generating strong test cases for it. In fact, he even consid
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start