摘要: Problem StatementYou are given an integer sequence of length $N$: $A_1,A_2,...,A_N$. Let us perform $Q$ operations in order. The $i$-th operation is d 阅读全文
posted @ 2023-09-22 20:50 灰鲭鲨 阅读(23) 评论(0) 推荐(0)
摘要: This is a harder version of the problem. In this version, \(n \le 7\).Marek is working hard on creating strong test cases to his new algorithmic probl 阅读全文
posted @ 2023-09-22 20:35 灰鲭鲨 阅读(112) 评论(0) 推荐(0)
摘要: Problem StatementThere is a tree with $N$ vertices numbered $1$ to $N$. The $i$-th edge connects vertices $A_i$ and $B_i$. Let us keep performing the 阅读全文
posted @ 2023-09-22 20:06 灰鲭鲨 阅读(46) 评论(0) 推荐(0)
摘要: Problem StatementFor an integer sequence $X=(X_1,X_2,\dots,X_n)$, let $X[L,R]$ denote the integer sequence $(X_L,X_{L+1},\dots,X_{R})$. You are given 阅读全文
posted @ 2023-09-22 19:56 灰鲭鲨 阅读(25) 评论(0) 推荐(0)
摘要: Problem StatementWe have a grid with $N$ rows and $M$ columns. We denote by $(i,j)$ the cell in the $i$-th row from the top and $j$-th column from the 阅读全文
posted @ 2023-09-22 19:35 灰鲭鲨 阅读(54) 评论(0) 推荐(0)