3 9 1 1 2 3 1 2 1 2 1 3 1 2 1 2 3 1 3 2 3 1 3 2 1 2 3 1 2
No Yes No No Twidai has three users. The nine operations are as follows. * User $1$ follows user $2$. No other users are following or followed by any users. * Determine if users $1$ and $2$ are following each other. User $1$ is following user $2$, but user $2$ is not following user $1$, so `No` is the correct answer to this operation. * User $2$ follows user $1$. * Determine if users $1$ and $2$ are following each other. User $1$ is following user $2$, and user $2$ is following user $1$, so `Yes` is the correct answer to this operation. * User $2$ follows user $3$. * User $3$ follows user $2$. * Determine if users $1$ and $3$ are following each other. User $1$ is not following user $3$, and user $3$ is not following user $1$, so `No` is the correct answer to this operation. * User $1$ unfollows user $2$. * Determine if users $1$ and $2$ are following each other. User $2$ is following user $1$, but user $1$ is not following user $2$, so `No` is the correct answer to this operation.
2 8 1 1 2 1 2 1 3 1 2 1 1 2 1 1 2 1 1 2 2 1 2 3 1 2
Yes No A user may follow the same user multiple times.
10 30 3 1 6 3 5 4 1 6 1 3 1 7 3 8 4 1 1 6 2 4 3 1 6 5 1 5 6 1 1 8 1 8 1 2 3 10 1 7 6 3 5 6 1 6 7 3 6 7 1 9 5 3 8 6 3 3 8 2 6 9 1 7 1 3 10 8 2 9 2 1 10 9 2 6 10 2 6 8 3 1 6 3 1 8 2 8 5 1 9 10
No No No No Yes Yes No No No Yes Yes
{
"problem": {
"name": "FF",
"description": {
"content": "Takahashi runs an SNS \"Twidai,\" which has $N$ users from user $1$ through user $N$. In Twidai, users can follow or unfollow other users. $Q$ operations have been performed since Twidai was launched. T",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc278_c"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Takahashi runs an SNS \"Twidai,\" which has $N$ users from user $1$ through user $N$. In Twidai, users can follow or unfollow other users.\n$Q$ operations have been performed since Twidai was launched. T...",
"is_translate": false,
"language": "English"
}
]
}