码迷,mamicode.com
首页 >  
搜索关键字:chosen problem solvi    ( 37771个结果
LeetCode144二叉树前序遍历
题目链接 https://leetcode-cn.com/problems/binary-tree-preorder-traversal/description/ 题解一:递归 // Problem: LeetCode 144 // URL: https://leetcode-cn.com/prob ...
分类:其他好文   时间:2020-07-13 00:00:50    阅读次数:90
Codeforces Round #655 (Div. 2) D. Omkar and Circle
题目链接:https://codeforces.com/contest/1372/problem/D 题意 给出奇数个数围成的环,每次可以将一个数替换为相邻两个数的和并删除相邻的两个数,问最后余下的数的最大值。 题解 即从 $n$ 个数中选取 $\frac{n+1}{2}$ 个数,且这些数中最多有一 ...
分类:其他好文   时间:2020-07-12 22:17:01    阅读次数:94
CodeForces 1114F--Please, another Queries on Array?(欧拉函数+线段树)
题目链接:https://codeforces.com/problemset/problem/1114/F 题目大意:给你n个数,q次操作,类型1,将区间[l,r]中每个数乘以x,类型2,询问$\varphi (\prod_{i=l}^{r}a_i)$。其中初始的n个数每个小于等于300,x<=30 ...
分类:其他好文   时间:2020-07-12 19:09:23    阅读次数:52
Pku3468 A Simple Problem with Integers
You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number ...
分类:其他好文   时间:2020-07-12 18:48:43    阅读次数:50
kickstart 谷歌 D 2020 年 7 月 12 日 13: 00 - 16: 00
https://codingcompetitions.withgoogle.com/kickstart/round/000000000019ff08/0000000000386d5c (第一题ac,第二题ac,第三题,小数据集能ac,第四题,小数据集能ac) 第一题: Problem Isyana ...
分类:其他好文   时间:2020-07-12 17:08:21    阅读次数:114
HDU Queuing (递推+矩阵快速幂)
##题面 Problem Description Queues and Priority Queues are data structures which are known to most computer scientists. The Queue occurs often in our dai ...
分类:其他好文   时间:2020-07-12 17:05:48    阅读次数:132
《算法竞赛进阶指南》0x38概率与数学期望 绿豆蛙的归宿
题目链接:https://www.acwing.com/problem/content/219/ 题目给出一张有向无环图,要求从1到n的路径长度的数学期望,如果一个点有k条出边,那么走每条表的概率都是1/k,我们容易知道,记一个点x到终点n的路径的数学期望是dis[x],那么dis[x]计算的结果依 ...
分类:编程语言   时间:2020-07-12 16:57:52    阅读次数:64
HDU
##题面 Problem Description Lele now is thinking about a simple function f(x). If x < 10 f(x) = x. If x >= 10 f(x) = a0 * f(x-1) + a1 * f(x-2) + a2 * f(x ...
分类:其他好文   时间:2020-07-12 16:40:31    阅读次数:59
D. Omkar and Circle
Danny, the local Math Maniac, is fascinated by circles, Omkar's most recent creation. Help him solve this circle problem! You are given \(n\) nonnegat ...
分类:其他好文   时间:2020-07-12 10:23:13    阅读次数:122
【离散化】 区间和
##题意 传送门 一个无限长数轴,初始数轴上每个坐标上的数都是$0$, 共$n$个操作,每个操作将数轴某一位置上的数加$c$, $m$个询问,询问区间$[ l , r ]$上所有数的和 ###数据范围 \(\begin{array}{l}-10^{9} \leq x \leq 10^{9} \\ 1 ...
分类:其他好文   时间:2020-07-12 00:53:14    阅读次数:85
37771条   上一页 1 ... 52 53 54 55 56 ... 3778 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!