in:
1 1 1 1
out:
1
https://www.luogu.com.cn/article/kjpcb1gk,https://www.luogu.com.cn/article/e1h99s5f,https://www.luogu.com.cn/article/l0xc5ghm,https://www.luogu.com.cn/article/kumogasn, https://www.luogu.com.cn/article/7ahnx7pr 输出 0
https://www.luogu.com.cn/article/7iyox1fw 输出 1 1