/ SeriousOJ /

Record Detail

Runtime Error


  
# Status Time Cost Memory Cost
#1 Runtime Error Traceback (most recent call last): File "foo.py", line 3, in <module> TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method' 19ms 3.527 MiB

Code

import re

t=int(input)

f = 0
p = input("")
if len(p) < 8:
    f = 1
if not re.search('[a-z]', p):
    f = 1
if not re.search('[A-Z]', p):
    f = 1
if not re.search('[0-9]', p):
    f = 1
if not re.search('[!@#$%^&*()]', p):
    f = 1

if (f == 0):
    print("valid")
else:
    print("invalid")

Information

Submit By
Type
Submission
Problem
P1007 Password Checker
Language
Python 3 (Python 3.12.3)
Submit At
2024-01-03 16:02:15
Judged At
2024-01-03 16:02:15
Judged By
Score
0
Total Time
19ms
Peak Memory
3.527 MiB