#HJ19 简单错误记录
#HJ19 简单错误记录
#HJ20 密码验证合格程序
while True:
try:
code = input()
low_sig = 0
up_sig = 0
dig = 0
other = 0
for i in code:
if i.islower():
low_sig = 1
elif i.isupper():
up_sig = 1
elif i.isdigit():
dig = 1
else:
other = 1
flag = True
for i in range(len(code) - 3):
if code.count(code[i:i + 3]) > 1:
flag = False
break
if (low_sig + up_sig + dig + other) >= 3 and int(len(code)) > 8 and flag:
print('OK')
else:
print('NG')
except:
break
NowCode|HJ Series_4
最新推荐文章于 2021-10-11 20:27:04 发布