CF1462B Last Year's Substring
题目描述
本题给你一个字符串,问删去其中一个可以为空的字串后,能否使其变为"$2020$"。
输入格式
第一行一个整数,为测试数据数量。
对于每个数据,第一行一个整数,为字符串长度。第二行输入字符串。
输出格式
对于每个数据点,如果可以,输出$YES$,否则输出$NO$。
说明/提示
In the first test case, Polycarp could choose $ i=3 $ and $ j=6 $ .
In the second test case, Polycarp could choose $ i=2 $ and $ j=5 $ .
In the third test case, Polycarp did not perform any operations with the string.