Code
def solve():
Upper = Lower = Digit = Char = False
t = int(input())
for i in range(t):
s = input()
for i in s:
if i in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":
Upper = True
elif i in "qwertyuiopasdfghjklzxcvbnm":
Lower = True
elif i in "1234567890":
Digit = True
else:
Char = True
print("valid" if (len(s) > 7 and Upper == Lower == Digit == Char == True) else"invalid")
solve()
Information
- Submit By
- Type
- Submission
- Problem
- P1007 Password Checker
- Language
- Python 3 (Python 3.12.3)
- Submit At
- 2025-02-17 14:00:37
- Judged At
- 2025-02-17 14:00:37
- Judged By
- Score
- 0
- Total Time
- 17ms
- Peak Memory
- 3.023 MiB