摘要:
Description There is an integer sequence of length $2^N$: $A_0, A_1, ..., A_{2^N-1}$. (Note that the sequence is 0-indexed.) For every integer K satis 阅读全文
摘要:
description Two integers x and y are compatible, if the result of their bitwise "AND" equals zero, that is, a & b = 0. For example, numbers 90 (101101 阅读全文
摘要:
T1 CF512D Fox And Travelling 给定一张 n 个点 m 条边的无向图。 一个点只有当与它直接相连的点中最多只有一个点未被遍历过时才可被遍历。 询问对于每个 \(k \in [0,n]\),遍历 k 个点的方案数。 \(n \le 100,m \le \frac{n(n-1) 阅读全文
摘要:
T1 CF555E Case of Computer Network 给定一张 n 个点 m 条边的无向图。 给定 q 组有向点对(s,t)。 询问是否存在使得所有 s 都能到达 t 的无向图中每条边的定向方案。 \(n,m,q \le 2 \times 10^5\) solution 其实吧,这题 阅读全文