码迷,mamicode.com
首页 >  
搜索关键字:algorithm    ( 11758个结果
list反转和排序
#include <list> #include <iostream> #include <algorithm> using namespace std; //list反转和排序 void printList(const list<int>&L){ for (list<int>::const_ite ...
分类:编程语言   时间:2020-06-20 19:31:03    阅读次数:65
简单算法3
股票 package com.sly.uploadfile.algorithm; /** * Created by fmgao on 2019/7/9. * 给定一个数组,它的第 i 个元素是一支给定股票第 i 天的价格。 * <p> * 如果你最多只允许完成一笔交易(即买入和卖出一支股票),设计一 ...
分类:编程语言   时间:2020-06-20 18:34:25    阅读次数:51
测试c++函数的运行时间
clock()函数返回从“开启这个程序进程”到“程序中调用clock()函数”时之间的CPU时钟计时单元(clock tick)数,在MSDN中称之为挂钟时间(wal-clock)常量CLOCKS_PER_SEC,它用来表示一秒钟会有多少个时钟计时单元。 比如:我想知道vector在2种情况下的运行 ...
分类:编程语言   时间:2020-06-20 18:26:20    阅读次数:57
luogu P2756 飞行员配对方案问题 网络流24
匈牙利: #include<iostream> #include<cstdio> #include<algorithm> #include<queue> #include<iomanip> #include<cstring> using namespace std; typedef long lon ...
分类:其他好文   时间:2020-06-20 11:43:20    阅读次数:52
Codeforces Global Round 8
传送门 视频题解 先填坑,详细题解晚上晚些时候再补。先附上代码。 A. C+= /* * Author: heyuhhh * Created Time: 2020/6/18 22:46:31 */ #include <iostream> #include <algorithm> #include < ...
分类:其他好文   时间:2020-06-19 21:11:24    阅读次数:48
A 1141 PAT Ranking of Institutions (25分)
一、技术总结 二、参考代码 #include<iostream> #include<vector> #include<algorithm> #include<set> #include<map> using namespace std; struct node_i{ string name; dou ...
分类:其他好文   时间:2020-06-19 00:49:08    阅读次数:43
splay区间模板-1331-序列终结者1
题目链接 #include <iostream> #include <cstdio> #include <algorithm> #define maxn 100005 using namespace std; int n,m; int val[maxn],num[maxn],siz[maxn],ch ...
分类:其他好文   时间:2020-06-18 21:39:08    阅读次数:50
进制转换
题目链接 #include<iostream> #include<string> #include<algorithm> using namespace std; int Atoi( string str , int N ){ //N进制转10进制,输入string 输出int int ans = ...
分类:其他好文   时间:2020-06-18 19:06:27    阅读次数:126
一个写得很shabi的differ
#include <cstdio> #include <cstring> #include <algorithm> #include <vector> #include <cstdlib> #include <string> #include <fstream> using namespace st ...
分类:其他好文   时间:2020-06-17 18:28:12    阅读次数:38
floyd
1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 5 using namespace std; 6 7 const int N = 110; 8 int f[N][N]; 9 10 //核心想法://i到达j经过前k ...
分类:其他好文   时间:2020-06-17 01:51:16    阅读次数:67
11758条   上一页 1 ... 37 38 39 40 41 ... 1176 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!