/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 15ms 3.066 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:50:26
Judged At
2024-11-11 03:43:09
Judged By
Score
0
Total Time
15ms
Peak Memory
3.066 MiB