摘要: 题目描述 The position of the leftmost maximum on the segment $ [l; r] $ of array $ x = [x_1, x_2, \ldots, x_n] $ is the smallest integer $ i $ such that $ 阅读全文
posted @ 2022-12-22 20:11 灰鲭鲨 阅读(24) 评论(0) 推荐(0)
摘要: 题目描述 You are given three integers $ a $ , $ b $ , and $ d $ . Your task is to find any integer $ x $ which satisfies all of the following conditions, 阅读全文
posted @ 2022-12-22 18:08 灰鲭鲨 阅读(18) 评论(0) 推荐(0)
摘要: Problem StatementA teacher has a hidden permutation $P=(P_1,P_2,\ldots,P_N)$ of $(1,2,\cdots,N)$. You are going to determine it. To do this, you prepa 阅读全文
posted @ 2022-12-22 16:02 灰鲭鲨 阅读(33) 评论(0) 推荐(0)