码迷,mamicode.com
首页 >  
搜索关键字:algorithm trading    ( 11829个结果
归并排序模板
归并排序模板 code: #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; const int N = 1e5 + 10; typedef long long ...
分类:编程语言   时间:2021-04-05 12:52:30    阅读次数:0
用基础Array数组实现动态数组、链表、栈和队列
代码地址: https://gitee.com/Tom-shushu/Algorithm-and-Data-Structure.git 一、ArrayList自定义封装 package com.zhouhong; /** * @ClassName: array * @Description: 二次封 ...
分类:编程语言   时间:2021-04-05 11:49:32    阅读次数:0
C库函数将字符串转大小写
头文件 #include <algorithm> transform 函数 转大写 std::string str_write; // 全部转为大写 std::transform(str_write.begin(), str_write.end(), str_write.begin(), toupp ...
分类:其他好文   时间:2021-03-30 13:05:05    阅读次数:0
C++ vector的用法
vector 是向量类型,它可以容纳许多类型的数据,如若干个整数,所以称其为容器。vector 是C++ STL的一个重要成员,使用它时需要包含头文件: #include<vector>; 一、vector 的初始化:可以有五种方式,举例说明如下: (1) vector<int> a(10); // ...
分类:编程语言   时间:2021-03-18 14:19:00    阅读次数:0
Codeforces Round #678 (Div. 2)A B C 题解
题意&思路:Wuuuu~,其实就是问总和是不是为M #include<iostream> #include<cstring> #include<cmath> #include<algorithm> #define rep(i,n) for(i=1;i<=n;++i) #define ms(a,n) ...
分类:其他好文   时间:2021-03-18 14:17:01    阅读次数:0
C++常用的STL及方法 (下)
前言 C++常用的STL及方法 (上) : C++常用的 STL 及方法 (中上) : C++常用的 STL 及方法 (中) : C++常用的 STL 及方法 (中下) : 目录 STL -- 泛型算法 <algorithm> max() -- 求最大值 min() -- 求最小值 abs() -- ...
分类:编程语言   时间:2021-03-17 14:01:43    阅读次数:0
P1782 旅行商的背包
#include <cmath> #include <queue> #include <cstdio> #include <vector> #include <cstring> #include <iostream> #include <algorithm> #define int long lon ...
分类:其他好文   时间:2021-03-16 13:45:35    阅读次数:0
[POI2005]BAN-Bank Notes
#include <cmath> #include <queue> #include <cstdio> #include <vector> #include <cstring> #include <iostream> #include <algorithm> #define ll long long ...
分类:其他好文   时间:2021-03-16 13:45:15    阅读次数:0
[多校练习] 成都七中数据结构 Challenge 系列解题报告
Challenge 0 给一个长为 \(n\) 的数列,有 \(M\) 次操作 \((1\le n, m \le 10^5)\),每次操作是以下两种之一: 修改数列中的一个数 求数列中某位置的值 解答:数组模拟即可。 #include <iostream> #include <cstdio> #in ...
分类:其他好文   时间:2021-03-16 11:41:02    阅读次数:0
PAT(Advanced Level)A1133. Splitting A Linked List
题意 要让链表里的所有负数的结点排在非负数的前面,以及让所有的[0, K]的数字放在(k, ∞)的前面,而且要保持相对顺序不变。保证链表不为空 思路 依次遍历链表的每个结点进行标记,第一趟取出负数,第二趟取出[0, K]内的数字,第三趟取出剩下没有取的数字,标记的方式是令data = 100010, ...
分类:其他好文   时间:2021-03-15 10:43:58    阅读次数:0
11829条   上一页 1 ... 6 7 8 9 10 ... 1183 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!