Password Checker

Password Checker

সময় লিমিট: 1.0 s

মেমরি লিমিট: 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

Information

ID
1007
Difficulty
5
Category
Ad_Hoc , Implementation দেখানোর জন্য ক্লিক করুন
Tags
(None)
# Submissions
49
Accepted
17
Accepted Ratio
35%
Uploaded By

Related

In following contests:

Beta Round #1