上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 53 下一页
摘要: 最大价值 已知,小写字母 $a \sim z$ 的价值分别为 $w_a,w_b, \ldots, w_z$。 对于一个由小写字母构成的长度为 $l$ 的字符串 $S=s_{1} s_{2} \ldots s_{l}$,其价值为 $w_{s1} \times 1 + w_{s2} \times 2 + 阅读全文
posted @ 2023-01-16 17:17 onlyblues 阅读(31) 评论(0) 推荐(0) 编辑
摘要: B. Gardener and the Array The gardener Kazimir Kazimirovich has an array of $n$ integers $c_1, c_2, \dots, c_n$. He wants to check if there are two di 阅读全文
posted @ 2023-01-15 18:24 onlyblues 阅读(86) 评论(5) 推荐(0) 编辑
摘要: 等差数列 给定一个长度为 $n$ 的正整数数列 $a_1,a_2, \ldots, a_n$ 和一个正整数 $k$。 你可以对数列进行以下两种操作: + i x ,增加操作,将 $a_i$ 的值增加 $x$($x \geq 1$)。- i x ,减少操作,将 $a_i$ 的值减少 $x$($x \g 阅读全文
posted @ 2023-01-13 23:13 onlyblues 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Maximize the Minimum Powered City You are given a 0-indexed integer array stations of length $n$, where stations[i] represents the number of power sta 阅读全文
posted @ 2023-01-13 16:05 onlyblues 阅读(17) 评论(0) 推荐(0) 编辑
摘要: Number of Great Partitions You are given an array nums consisting of positive integers and an integer k . Partition the array into two ordered groups  阅读全文
posted @ 2023-01-12 23:18 onlyblues 阅读(17) 评论(0) 推荐(0) 编辑
摘要: Count Pairs With XOR in a Range Given a (0-indexed) integer array nums and two integers low and high , return the number of nice pairs. A nice pair is 阅读全文
posted @ 2023-01-12 16:45 onlyblues 阅读(32) 评论(0) 推荐(0) 编辑
摘要: Maximum Number of Points From Grid Queries You are given an $m \times n$ integer matrix grid and an array queries of size $k$. Find an array answer of 阅读全文
posted @ 2023-01-11 17:24 onlyblues 阅读(14) 评论(0) 推荐(0) 编辑
摘要: Frog Jump II You are given a 0-indexed integer array stones sorted in strictly increasing order representing the positions of stones in a river. A fro 阅读全文
posted @ 2023-01-11 10:15 onlyblues 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 技能升级 小蓝最近正在玩一款 $RPG$ 游戏。 他的角色一共有 $N$ 个可以加攻击力的技能。 其中第 $i$ 个技能首次升级可以提升 $A_i$ 点攻击力,以后每次升级增加的点数都会减少 $B_i$。 $\left\lceil \frac{A_i}{B_i} \right\rceil$(上取整) 阅读全文
posted @ 2023-01-10 17:07 onlyblues 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 选数异或 给定一个长度为 $n$ 的数列 $A_1,A_2,\ldots,A_n$ 和一个非负整数 $x$,给定 $m$ 次查询,每次询问能否从某个区间 $[l,r]$ 中选择两个下标不同的数使得他们的异或等于 $x$。 输入格式 输入的第一行包含三个整数 $n,m,x$。 第二行包含 $n$ 个整 阅读全文
posted @ 2023-01-09 11:54 onlyblues 阅读(86) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 53 下一页
Web Analytics