1201

CF1201C - Maximum Median

思路 二分答案。对于一个mid,查询中位数要是为mid的话至少要做多少次操作,最小操作次数就是排序后从中位数开始计算max(0, mid - v[i])的和 ac代码 #include <bits/stdc++.h> using namespace std; using i64 = long lon ......
Maximum Median 1201C 1201 CF

LeetCode 1201. Ugly Number III 数学+二分答案

An ugly number is a positive integer that is divisible by $a$, $b$, or $c$. Given four integers $n$, $a$, $b$, and $c$, return the $n$th ugly number. ......
LeetCode 答案 数学 Number 1201

4.[1201D - Treasure Hunting](https://codeforces.com/problemset/problem/1201/D)

4.1201D - Treasure Hunting 题目意思: 在一个n*m的地图上面,左下角的坐标是(1,1),最开始你位于左下角,一秒钟你可以进行往左或者往右的操作,你只能在一些特殊的列上面进行往上移动的操作,你不可以往下移动。现在告诉你k个宝藏的坐标信息以及哪些列是允许往上的,问最后至少要几 ......
1201 codeforces problemset Treasure Hunting
共3篇  :1/1页 首页上一页1下一页尾页