Password Checker

Password Checker

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Time Limit: 1.0 s

Memory Limit: 64.0 MB

Given a password, check if its valid.

A valid password satisfies the following conditions.

  • Minimum 8 character.
  • Atleast one lower case character.
  • Atleast one upper case character.
  • Atleast one digit character.
  • Atleast one special character [!@#$%^&*()].

Input format:

T, where T = number of case to check. T <= 100
S, where S = the string to check for validity. [S] <= 100

Output format:

s, where s = "valid" if the url is valid, else s = "invalid".

Sample Input:

3
1qazZAQ!
1avbac
3554535

Sample Output:

valid
invalid
invalid

Beta Round #1

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2023-11-29 16:00
End at
2023-11-29 18:00
Duration
2.0 hour(s)
Host
Partic.
23