Email Filing
1 Sec 64 MB |
6 | 49 |
通过 | 提交 |
题目描述
输入格式
输出格式
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