摘要: Problem StatementYou are given a simple undirected graph with $N$ vertices and $M$ edges. The vertices are numbered $1, \dots, N$, and the $i$-th $(1 阅读全文
posted @ 2022-09-10 11:44 灰鲭鲨 阅读(89) 评论(0) 推荐(0)
摘要: Problem StatementYou are given a sequence $a = (a_1, \dots, a_N)$ of length $N$ consisting of integers between $1$ and $N$. Find the number of pairs o 阅读全文
posted @ 2022-09-10 11:05 灰鲭鲨 阅读(141) 评论(0) 推荐(0)
摘要: Problem StatementYou are given a sequence of positive integers $A=(a_1,\ldots,a_N)$ of length $N$. There are $(2^N-1)$ ways to choose one or more term 阅读全文
posted @ 2022-09-10 09:38 灰鲭鲨 阅读(44) 评论(0) 推荐(0)