Password Policy Checker
150 points · 0 solved
The first line is T. Each of the next T lines is username password (one space; neither contains spaces; both printable ASCII). Check these rules in this order:
LENGTH— at least 12 charactersUPPER— contains A–ZLOWER— contains a–zDIGIT— contains 0–9SYMBOL— contains a character that isn't an ASCII letter or digitREPEAT— no character three or more times in a rowUSERNAME— must not contain the username (case-insensitive)
Print OK, or the failed rule names joined by commas.
Example 1 input
3 alice Summer2026! bob CorrectHorse#42 trav traven12345
Expected output
LENGTH OK LENGTH,UPPER,SYMBOL,USERNAME
main.py
Ctrl+Enter runs · Ctrl+Shift+Enter submits