Strong Language Problem Code: SSCRIPT

 

Read problem statements in Bengali, Mandarin Chinese, Russian, and Vietnamese as well.

A string is said to be using strong language if it contains at least  consecutive characters '*'.

You are given a string  with length . Determine whether it uses strong language or not.

Input

  • The first line of the input contains a single integer  denoting the number of test cases. The description of  test cases follows.
  • The first line of each test case contains two space-separated integers  and .
  • The second line contains a single string  with length . 

Output

Print a single line containing the string "YES" if the string contains strong language or "NO" if it does not (without quotes).

You may print each character of each string in uppercase or lowercase (for example, the strings "yEs", "yes", "Yes" and "YES" will all be treated as identical).

Constraints

  •  contains only lowercase English letters and characters '*'
  • Sum of  over all testcases is atmost .

Subtasks

Subtask #1 (30 points): , Sum of  over all testcases is atmost 

Subtask #2 (70 points): original constraints

Example Input

3
5 2
*a*b*
5 2
*a**b
5 1
abcde

Example Output

NO
YES
NO

Explanation

Example case 1: Since there are no two consecutive characters '*', the string does not contain strong language.

Example case 2: There are two adjacent characters '*', so the string contains strong language.

Example case 3: Since there are no characters '*' in the string, it does not contain strong language.

Comments

Popular posts from this blog

How to pass parameters in webhook?

Access and modify all the resources of our Wiki.js using WikiJS API

Fahrenheit to Celsius