上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 65 下一页
摘要: G. Moving Platforms There is a game where you need to move through a labyrinth. The labyrinth consists of $n$ platforms, connected by $m$ passages. Ea 阅读全文
posted @ 2024-02-20 13:11 onlyblues 阅读(88) 评论(0) 推荐(0)
摘要: F - Breakdown Problem Statement You are given a simple undirected graph consisting of $N$ vertices and $M$ edges. For $i = 1, 2, \ldots, M$, the $i$-t 阅读全文
posted @ 2024-02-18 16:22 onlyblues 阅读(46) 评论(0) 推荐(0)
摘要: Minimize OR of Remaining Elements Using Operations You are given a 0-indexed integer array nums and an integer k. In one operation, you can pick any i 阅读全文
posted @ 2024-02-17 16:54 onlyblues 阅读(42) 评论(0) 推荐(0)
摘要: 小苯的逆序对 题目描述 小苯有一个长度为 $n$ 的排列 $p$。他很想知道这个排列中有多少个逆序对满足互素。 形式化的,有多少个满足 $(i<j)$ 且 $(a_i > a_j)$ 且 $gcd(a_i, a_j) = 1$ 的 $(i, j)$ 对。 输入描述: 输入包含两行。 第一行一个正整数 阅读全文
posted @ 2024-02-16 22:55 onlyblues 阅读(186) 评论(0) 推荐(1)
摘要: D. Sasha and a Walk in the City Sasha wants to take a walk with his girlfriend in the city. The city consists of $n$ intersections, numbered from $1$ 阅读全文
posted @ 2024-02-16 18:28 onlyblues 阅读(205) 评论(1) 推荐(1)
摘要: 数组成鸡 题目描述 小鸡有一个由整数组成的数组,小鸡可以对这个数组进行任意次(可以不进行)全数组每个数加一或全数组每个数减一的操作。 现在,小鸡想让你回答 $Q$ 次询问,每次询问给出一个整数 $M$,你需要回答任意次(可以不操作)操作后是否可以使得给定数组的乘积等于给出的整数 $M$。 输入描述: 阅读全文
posted @ 2024-02-15 20:31 onlyblues 阅读(57) 评论(0) 推荐(0)
摘要: G. One-Dimensional Puzzle You have a one-dimensional puzzle, all the elements of which need to be put in one row, connecting with each other. All the 阅读全文
posted @ 2024-02-14 20:19 onlyblues 阅读(201) 评论(1) 推荐(2)
摘要: D. Lonely Mountain Dungeons Once, the people, elves, dwarves, and other inhabitants of Middle-earth gathered to reclaim the treasures stolen from them 阅读全文
posted @ 2024-02-13 20:33 onlyblues 阅读(81) 评论(0) 推荐(0)
摘要: E. Space Harbour There are $n$ points numbered $1$ to $n$ on a straight line. Initially, there are $m$ harbours. The $i$-th harbour is at point $X_i$ 阅读全文
posted @ 2024-02-13 12:59 onlyblues 阅读(47) 评论(0) 推荐(0)
摘要: E. Klever Permutation You are given two integers $n$ and $k$ ($k \le n$), where $k$ is even. A permutation of length $n$ is an array consisting of $n$ 阅读全文
posted @ 2024-02-10 12:07 onlyblues 阅读(148) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 65 下一页
Web Analytics