4 3 3 1 2 1 3 2 3 3 2 1 2 1 3 3 1 1 2 3 0
Yes
Yes
Yes
No
For the $1$\-st test case, $G$ satisfies the condition. In this case, every subset $X$ is a clique, so we can just let $Y=X$.
For the $2$\-nd test case, $G$ satisfies the condition. For example, for $X={2,3}$, we can let $Y={2}$.
For the $4$\-th test case, $G$ doesn't satisfy the condition. If we let $X={1,2,3}$, no subset $Y$ of $X$ satisfies the condition.{
"problem": {
"name": "Big Clique Everywhere",
"description": {
"content": "You are given a simple undirected graph $G$ with $N$ vertices numbered $1$ to $N$. $G$ has $M$ edges and the $i$\\-th edge connects vertices $A_i$ and $B_i$. Check if $G$ satisfies the following condit",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 4000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "agc067_a"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a simple undirected graph $G$ with $N$ vertices numbered $1$ to $N$. $G$ has $M$ edges and the $i$\\-th edge connects vertices $A_i$ and $B_i$.\nCheck if $G$ satisfies the following condit...",
"is_translate": false,
"language": "English"
}
]
}