上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 41 下一页
摘要: Problem StatementWe have a sequence of positive integers of length $N^2$, $A=(A_1,\ A_2,\ \dots,\ A_{N^2})$, and a positive integer $S$. For this sequ 阅读全文
posted @ 2023-07-25 19:46 灰鲭鲨 阅读(26) 评论(0) 推荐(0)
摘要: Problem StatementFind the number, modulo $998244353$, of permutations $P=(P_1,P_2,\dots,P_N)$ of $(1,2,\dots,N)$ such that: $|P_i - i| \ge X$ for all 阅读全文
posted @ 2023-07-25 19:27 灰鲭鲨 阅读(33) 评论(0) 推荐(0)
摘要: Problem StatementThere is an $N \times M$ grid, where the square at the $i$-th row from the top and $j$-th column from the left has a non-negative int 阅读全文
posted @ 2023-07-25 19:20 灰鲭鲨 阅读(31) 评论(0) 推荐(0)
摘要: # [省选联考 2023] 填数游戏 ## 题目描述 众所周知,Alice 和 Bob 是一对好朋友。今天,他们约好一起玩游戏。 一开始,他们各自有一张空白的纸条。接下来,他们会在纸条上依次写 $n$ 个 $[1,m]$ 范围内的正整数。等 Alice 写完,Bob **在看到 Alice 写的纸条 阅读全文
posted @ 2023-07-25 19:08 灰鲭鲨 阅读(82) 评论(0) 推荐(0)
摘要: Problem StatementThere are $N$ Takahashi. The $i$-th Takahashi has an integer $A_i$ and $B_i$ balls. An integer $x$ between $1$ and $K$, inclusive, wi 阅读全文
posted @ 2023-07-22 13:59 灰鲭鲨 阅读(61) 评论(0) 推荐(0)
摘要: # X-OR ## 题面翻译 ### 题目描述 本题是**交互题**。 有一个固定的长度为 $n$ 的排列 $P$,其值域为 $[0,n-1]$,你可以进行不超过 $4269$ 次询问,之后你需要输出这个排列 $P$。 ### 输入格式 第一行有一个正整数 $n$,表示排列的长度。 保证 $3\le 阅读全文
posted @ 2023-07-22 13:46 灰鲭鲨 阅读(24) 评论(0) 推荐(0)
摘要: Problem StatementWe define the density of a non-empty simple undirected graph as $\displaystyle\frac{(\text{number of edges})}{(\text{number of vertic 阅读全文
posted @ 2023-06-02 22:34 灰鲭鲨 阅读(80) 评论(0) 推荐(0)
摘要: Problem StatementYou are given a tuple of $N$ non-negative integers $A=(A_1,A_2,\ldots,A_N)$ such that $A_1=0$ and $A_N>0$. Takahashi has $N$ counters 阅读全文
posted @ 2023-06-02 22:02 灰鲭鲨 阅读(21) 评论(0) 推荐(0)
摘要: Problem StatementSnuke found a random number generator. It generates an integer between $0$ and $N-1$ (inclusive). An integer sequence $A_0, A_1, \cdo 阅读全文
posted @ 2023-06-02 18:15 灰鲭鲨 阅读(25) 评论(0) 推荐(0)
摘要: 这是一道交互题。 交互库里有一棵 $n$ 个点的树,你可以通过做若干次如下询问来确定这棵树: 给定一个节点集合 $S$ 和节点 $x$,交互库会告诉你 $x$ 是否在包含 $S$ 的最小连通块中。 Details 具体的,你需要引用头文件 D.h 并且实现以下函数: std::vector<std: 阅读全文
posted @ 2023-05-28 22:35 灰鲭鲨 阅读(114) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 41 下一页