Email Filing

 1 Sec 64 MB |  获取标签
0219
通过人数尝试人数总提交数

 

题目描述

 

输入格式

 

输出格式

Output T lines, each one either containing either YES or NO, specifying whether FJ can successfully file all his emails in each of the T subcases.

样例输入 #1

6
5 5 1
1 2 3 4 5
5 5 1
1 2 3 5 4
5 5 1
1 2 4 5 3
5 5 2
1 2 4 5 3
3 10 2
1 3 2 1 3 2 1 3 2 1
3 10 1
1 3 2 1 3 2 1 3 2 1

样例输出 #1

YES
YES
NO
YES
YES
NO

来源

USACO 2022 February Contest, Silver

 

 您尚未登录,无法进行代码提交