/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 13ms 2.824 MiB

Code

password = input("Enter a password: ")
count = 0
lenght = len(password)
if lenght >= 8:
    count=count+1
for i in password:
    if i >="a" and i <="z":
        count = count+1
        break
for i in password:
    if i >="A" and i <="Z":
        count = count+1
        break
for i in password:
    if i >="0" and i <="9":
        count =count+1
        break
for i in password:
    if i=="!" or i=="@" or i=="#" or i=="$" or i=="%" or i=="&" or i=="^" or i=="()":
        count = count+1
        break
if count>=5:
    print("valid")
else:
    print("invalid")

Information

Submit By
Type
Submission
Problem
P1007 Password Checker
Language
Python 3 (Python 3.12.3)
Submit At
2024-02-29 13:53:13
Judged At
2024-02-29 13:53:13
Judged By
Score
0
Total Time
13ms
Peak Memory
2.824 MiB