#题目 #代码 #include <unordered_map> #include <vector> using namespace std; class Solution { public: vector<int> twoSum(vector<int> &nums, int target) { v ...
分类:
其他好文 时间:
2021-04-13 12:55:20
阅读次数:
0
函数题 /*练习5-1 求m到n之和 (10 分) 本题要求实现一个计算m~n(m<n)之间所有整数的和的简单函数。 函数接口定义: int sum( int m, int n ); 其中m和n是用户传入的参数,保证有m<n。函数返回的是m~n之间所有整数的和。 裁判测试程序样例: #include ...
分类:
编程语言 时间:
2021-04-13 12:28:09
阅读次数:
0
题目来自:http://218.5.5.242:9018/JudgeOnline/problem.php?id=1812 题目描述 棒棒棒有一根长度为n的棒棒,现在他用Prehistorical Power把这根棒棒折成一个长方形且不能是正方形。他想知道他有多少种折法。 输入 输入一行,有一个n,为 ...
分类:
编程语言 时间:
2021-04-13 12:26:55
阅读次数:
0
在求独立的随机变量之和的分布时,可用矩母函数法。 1 矩母函数法 定理 已知$X_1,\ldots,X_n$为独立的随机变量,各种的矩母函数为$M_1,\ldots,M_n$,$a_1,\ldots,a_n$为常数,则$Y=\sum_^a_i X_i$的矩母函数为 \[ M_Y(t)=\text{E ...
分类:
其他好文 时间:
2021-04-13 12:24:16
阅读次数:
0
http://codeforces.com/contest/1513/problem/C dp $f[i][j]:$表示当前数位上为i(0~9), 加法次数为j最终形成的数位. f[i][j] = f[i - 1][j + 1]; f[9][j] = f[1][j + 1] + f[0][j + 1 ...
分类:
其他好文 时间:
2021-04-13 12:19:52
阅读次数:
0
题目描述 A group of people are standing in a line. Each person has a distinct height. You would like to count the number of unordered pairs of people in t ...
分类:
其他好文 时间:
2021-04-13 12:06:43
阅读次数:
0
这里有板子 最大流 view code namespace Flow { int tot=1,fi[N],ne[M],to[M],w[M],S,T,d[N],nn; inline void add(int x,int y,int c) { ne[++tot]=fi[x],fi[x]=tot,to[t ...
分类:
其他好文 时间:
2021-04-13 11:45:28
阅读次数:
0
MySQL:系统提供了很多函数 Count:统计个数,次数,null不统计 Max:最大值 Min:最小值 Sum:求和 Avg:平均值 Round:四舍五入 ...
分类:
其他好文 时间:
2021-04-12 12:55:32
阅读次数:
0
Zhou B., Khosla A., Lapedriza A., Oliva A. and Torralba A. Learning Deep Features for Discriminative Localization. CVPR, 2016. Selvaraju R., Das A., V ...
分类:
移动开发 时间:
2021-04-12 12:52:24
阅读次数:
0
一、标题1 上标用^表达,下标用_表达,超过一位的参数用{}裹挟,空格要勤空 二、实例 1.求和符号$\sum$的表达 \sum_{i=0}^{15} p_i 2^{8i} 效果如下: 2.分数的表达 \frac{2^i \rho t}{32} < 256 效果如下: 3.??? 三、符号 ...
分类:
其他好文 时间:
2021-04-12 12:21:34
阅读次数:
0