STRONG PASSWORD
CodeChefOpen on judge ↗
Chef is very excited about Code-O-Fiesta and wants to open an account in Codechef to participate in the contest. But he is really having a hard time in choosing a strong password for his account. So, Chef wants to you help him out. Every time Chef creates a password you need to check if its strong or not. A password $S$ is said to be strong if it satisfies the following criteria: 1. It contains a
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