码迷,mamicode.com
首页 >  
搜索关键字:algorithm trading    ( 11829个结果
AcWing-4-多重背包问题
题目链接:https://www.acwing.com/problem/content/4/ 题目描述: 解题思路:与前两个背包问题类似(题目链接:https://www.cnblogs.com/ygsr/p/14502222.html) 与前两个题比,这个题多添加一个for循环用来读取物品个数。 ...
分类:Windows程序   时间:2021-03-10 13:19:56    阅读次数:0
顺序表
1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 #include <cmath> 5 #include <cstring> 6 #include <cstdlib> 7 using namespace std; 8 ...
分类:其他好文   时间:2021-03-10 13:13:30    阅读次数:0
1085 Perfect Sequence (25 分)
1 #pragma warning(disable:4996) 2 #define _CRT_SECURE_NO_WARNINGS 3 4 #include <iostream> 5 #include <algorithm> 6 #include <cmath> 7 #include <vector ...
分类:其他好文   时间:2021-03-05 13:14:39    阅读次数:0
哈希算法:Sort
如果用sort函数的话需要nlogn的时间复杂度 #include<algorithm> #include<string.h> #include<iostream> #include<stdio.h> #include<string.h> #define OFFSET 500000 int Hash ...
分类:编程语言   时间:2021-03-03 12:38:22    阅读次数:0
stl(20)内置算法merge
1.merge的用法 用于将两个有序的容器合并到另外一个容器,合并后的容器也是有序的。头文件#include <algorithm> #include <iostream> #include <vector> #include <algorithm> int main(){ std::vector< ...
分类:编程语言   时间:2021-03-03 12:10:04    阅读次数:0
省选测试32
A 跑步 题目大意 : * Code Show Code #include <cstdio> #include <algorithm> using namespace std; const int N = 2005; int read(int x = 0, int f = 1, char c = g ...
分类:其他好文   时间:2021-03-01 13:16:23    阅读次数:0
hdu 1561The more, The Better(树上背包+对树分别背包)
The more, The Better Time Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 12033 Accepted Submission(s) ...
分类:其他好文   时间:2021-02-26 12:53:14    阅读次数:0
Codeforces Round #704 (Div. 2)
Codeforces 难得有一次不熬夜的比赛。 A 送分题,记得开 long long。 #include<iostream> #include<cstdio> #include<algorithm> #include<cstring> using namespace std; #define in ...
分类:其他好文   时间:2021-02-24 13:20:53    阅读次数:0
C++ algorithm之any_of
函数原型: template <class InputIterator, class UnaryPredicate> bool any_of (InputIterator first, InputIterator last, UnaryPredicate pred); 在范围[first, last ...
分类:编程语言   时间:2021-02-24 13:15:12    阅读次数:0
【WZOI 21/239】 Picks loves segment tree
题链 #include <bits/stdc++.h> #include <iostream> #include <algorithm> #include <stdio.h> #include <string.h> #include <stdlib.h> #pragma GCC optimize(2 ...
分类:其他好文   时间:2021-02-22 12:36:23    阅读次数:0
11829条   上一页 1 ... 7 8 9 10 11 ... 1183 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!