摘要: ## 题目描述 Sam changed his school and on the first biology lesson he got a very interesting task about genes. You are given $ n $ arrays, the $ i $ -th o 阅读全文
posted @ 2023-09-04 16:45 灰鲭鲨 阅读(18) 评论(0) 推荐(0)
摘要: ## 题目描述 On a permutation $ p $ of length $ n $ , we define a bully swap as follows: - Let $ i $ be the index of the largest element $ p_i $ such that 阅读全文
posted @ 2023-09-04 16:31 灰鲭鲨 阅读(46) 评论(0) 推荐(0)
摘要: # [THUPC2022 决赛] rsraogps ## 题目描述 给序列 $a_1,\dots,a_n$,$b_1,\dots,b_n$,$c_1,\dots,c_n$, 定义区间 $[l,r]$ 的价值为 $a_l,\dots,a_r$ 按位与,$b_l,\dots,b_r$ 按位或,$c_l, 阅读全文
posted @ 2023-09-04 16:25 灰鲭鲨 阅读(38) 评论(0) 推荐(0)
摘要: ## 题目描述 You are given an array $ A $ of length $ N $ weights of masses $ A_1 $ , $ A_2 $ ... $ A_N $ . No two weights have the same mass. You can put 阅读全文
posted @ 2023-09-04 16:03 灰鲭鲨 阅读(40) 评论(0) 推荐(0)
摘要: ## 题目描述 You are given a tree with $ n $ nodes. For each node, you either color it in $ 0 $ or $ 1 $ . The value of a path $ (u,v) $ is equal to the ME 阅读全文
posted @ 2023-09-04 15:53 灰鲭鲨 阅读(28) 评论(0) 推荐(0)
摘要: ## 题目描述 Michael and Brian are stuck in a hotel with $ n $ rooms, numbered from $ 1 $ to $ n $ , and need to find each other. But this hotel's doors ar 阅读全文
posted @ 2023-09-04 15:31 灰鲭鲨 阅读(12) 评论(0) 推荐(0)
摘要: ## 题目描述 You have a set $ S $ of $ n $ distinct integers between $ 1 $ and $ m $ . Each second you do the following steps: 1. Pick an element $ x $ in 阅读全文
posted @ 2023-09-04 15:12 灰鲭鲨 阅读(55) 评论(0) 推荐(0)
摘要: Problem StatementThere is a grid with $N$ rows and $M$ columns. The square at the $i$-th row from the top and the $j$-th column from the left contains 阅读全文
posted @ 2023-09-04 10:36 灰鲭鲨 阅读(58) 评论(0) 推荐(1)
摘要: Problem StatementYou are given a simple connected undirected graph $G$ with $N$ vertices and $M$ edges. The vertices and edges of $G$ are numbered as 阅读全文
posted @ 2023-09-04 10:28 灰鲭鲨 阅读(31) 评论(0) 推荐(0)