码迷,mamicode.com
首页 >  
搜索关键字:generic algorithm    ( 18934个结果
P4869 albus就是要第一个出场
#include<iostream> #include<cstring> #include<algorithm> #include<cmath> #include<cstdlib> #include<climits> #include<stack> #include<vector> #include ...
分类:其他好文   时间:2020-07-07 17:18:53    阅读次数:40
Color Graph
原题链接 https://ac.nowcoder.com/acm/contest/4370/K 去年上海现场赛的一道签到题 太菜了对着这题自闭好久 现在看其实就是一道二分图判断奇环,唯一要思考的地方是怎么枚举可行的情况。解法是因为n很小所以可以二进制暴力枚举染色为1的点然后暴力判断(其实也不难想) ...
分类:其他好文   时间:2020-07-07 16:08:24    阅读次数:82
宁波多校(二) D. LCA!(换根lca)
写的略微复杂了一些,分了很多种类。 首先肯定只能写一次建树之后进行分类讨论查看位置 #include<iostream> #include<queue> #include<map> #include<vector> #include<cstdio> #include<algorithm> #incl ...
分类:其他好文   时间:2020-07-07 09:47:23    阅读次数:56
PTA 乙级 1020 月饼 (25分) C++
利用sort函数对平均数进行排序 C++ 1 #include <iostream> 2 #include <algorithm> 3 4 using namespace std; 5 6 struct Goods { //货物结构体(库存,总售价,单价) 7 float mass, price, ...
分类:编程语言   时间:2020-07-06 22:45:01    阅读次数:98
二分法查找原理
1 #include <iostream> 2 #include <algorithm> 3 4 using namespace std; 5 int a[100]; 6 int binarysearch(int a[],int size,int att){ 7 sort(a,a+size);//一 ...
分类:其他好文   时间:2020-07-06 19:25:25    阅读次数:50
csharp: Emgu.CV.OCR and Tesseract.OCR Optical Character Recognition
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. ...
分类:其他好文   时间:2020-07-06 18:13:51    阅读次数:66
CF997C Sky Full of Stars
题目传送门 分析: 直接膜拜大佬博客OrzOrzOrz #include<cstdio> #include<cstring> #include<cmath> #include<algorithm> #include<vector> #include<iostream> #include<map> # ...
分类:其他好文   时间:2020-07-05 22:44:57    阅读次数:59
springboot登陆拦截器
springboot登陆拦截器 拦截器一般是用来防止非登陆状态下对一些网页进行操作和访问, 和SSM框架中实现方式类似都是继承HandlerInterceptor, 只是配置方式有所不同 实现步骤 1. 继承HandlerInterceptor接口 这个接口中有三个方法 boolean preHan ...
分类:编程语言   时间:2020-07-05 21:12:57    阅读次数:56
宁波多校(一) B题 狂赌之渊(dfs+概率)
概率+暴力dfs 可以暴力枚举所有的状态,判断是否成立,对于每个状态,记录抽到这个状态的概率,如果能成功,就在答案上加上这个概率 #include <cstdio> #include <algorithm> #include<iostream> using namespace std; const ...
分类:其他好文   时间:2020-07-05 20:53:24    阅读次数:57
luogu P3690【模板】Link Cut Tree(动态树)
#include<iostream> #include<cstring> #include<algorithm> #include<cmath> #include<cstdlib> #include<climits> #include<stack> #include<vector> #include ...
分类:其他好文   时间:2020-07-05 19:30:34    阅读次数:54
18934条   上一页 1 ... 44 45 46 47 48 ... 1894 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!