码迷,mamicode.com
首页 >  
搜索关键字:sum problem    ( 57617个结果
单源最短路 : 拆点
https://www.acwing.com/problem/content/1133/ #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); cout.tie ...
分类:其他好文   时间:2021-02-15 11:53:38    阅读次数:0
单源最短路 : 计数
https://www.acwing.com/problem/content/1136/ #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); cout.tie ...
分类:其他好文   时间:2021-02-15 11:53:26    阅读次数:0
JS数据类型
JS数据类型 基本数据类型 number string boolean undefined null 复杂数据类型/引用数据类型 array object function window.onload = function(){ var str = 'abc'; var num =123; var ...
分类:Web程序   时间:2021-02-10 13:42:28    阅读次数:0
递归函数
# 递归是一种编程思想 # 递归的特点: # 函数内部自己调用自己 # 必须有出口 # 应用:3以内数字累加和 # 需求:3以内数字累加和 3+2+1 # 6 = 3 + 2以内数字累加和 # 2以内数字累加和 = 2 + 1以内数字累加和 # 1以内数字累加和 = 1 (出口) def sum_n ...
分类:其他好文   时间:2021-02-10 13:33:42    阅读次数:0
leetcode_485. 最大连续1的个数
给定一个二进制数组, 计算其中最大连续1的个数。 示例 1: 输入: [1,1,0,1,1,1] 输出: 3 解释: 开头的两位和最后的三位都是连续1,所以最大连续1的个数是 3. 注意: 输入的数组只包含 0 和1。 输入数组的长度是正整数,且不超过 10,000。 来源:力扣(LeetCode) ...
分类:其他好文   时间:2021-02-10 13:25:51    阅读次数:0
Dima and Salad 题解(01背包变形)
题目链接 题目大意 给你n个物品,每个物品有两个值一个为a,一个为b 要你拿任意的物品使得$\sum a/ \sum b=k ,且max(\sum a)$ \(1<=n<=100\; 1<=k=10\; 1<=a[i],b[i]<=100\) 题目思路 一个显然易见的思路设$dp[i][j]\(为是 ...
分类:其他好文   时间:2021-02-10 13:10:08    阅读次数:0
2020 BIT冬训-贪心 G - Voting CodeForces - 749C
Problem Description There are n employees in Alternative Cake Manufacturing (ACM). They are now voting on some very important question and the leading ...
分类:其他好文   时间:2021-02-10 13:08:04    阅读次数:0
14-HIve聚合函数
聚合函数 函数返回值型 函数(参数) 描述 BIGINT count(*), count(expr), count(DISTINCT expr[, expr...]) 1.统计总行数,包括含有 NULL 值的行 2.count(expr) 统计提 供非 NULL 的 expr 表达式 值的行数 3. ...
分类:其他好文   时间:2021-02-10 13:04:58    阅读次数:0
1002 A+B for Polynomials (25 分)
This time, you are supposed to find $A+B$ where $A$ and $B$ are two polynomials. Input Specification: Each input file contains one test case. Each cas ...
分类:其他好文   时间:2021-02-10 13:03:20    阅读次数:0
2020 BIT冬训-贪心 F - Parallelogram is Back CodeForces - 749B
Problem Description Long time ago Alex created an interesting problem about parallelogram. The input data for this problem contained four integer poin ...
分类:其他好文   时间:2021-02-10 13:02:09    阅读次数:0
57617条   上一页 1 ... 41 42 43 44 45 ... 5762 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!