码迷,mamicode.com
首页 >  
搜索关键字:algorithm    ( 11758个结果)
算法设计与分析(三)回溯法---八皇后问题(包含全排列)
全排序问题:输入一个按字符序升序的无重复字母字符串,输出所有按字典升序的排列组合 #include<iostream> #include<string> #include<algorithm> #include<map> using namespace std; string s; map<stri ...
分类:编程语言   时间:2020-04-16 00:41:05    阅读次数:100
扩展Nacos使其支持https和登陆 拉取配置 com.alibaba.nacos.client.naming.tls.enable
官方依赖版本: nacos-server :1.2.1 nacos-config-spring-boot.version :0.2.7 nacos server支持启用鉴权 ### If turn on auth system: nacos.core.auth.enabled=true 按照官方ex ...
分类:Web程序   时间:2020-04-15 22:58:13    阅读次数:393
Dijkstra
#include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 500; int n, m, g[N][N], d[N]; bool st[N]; int dijkstra( ...
分类:其他好文   时间:2020-04-14 22:36:28    阅读次数:49
Codeforces Round #634 (Div. 3)
题意:将n分成a,b。保证a>b,问有几种分法 解析:偶数输出n/2-1,奇数n/2即可 #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<set> using namespace s ...
分类:其他好文   时间:2020-04-14 21:06:18    阅读次数:100
hdu 1402 大数A*B模板(FFT)
hdu 1402 大数A B模板(FFT) "题目链接" "参考博客" ...
分类:其他好文   时间:2020-04-14 18:41:30    阅读次数:51
树上距离(树形DP)
问题 A: 树上距离 懒惰的温温今天上班也在偷懒。盯着窗外发呆的温温发现,透过窗户正巧能看到一棵n个节点的树。一棵n个节点的树包含n 1条边,且n个节点是联通的。树上两点之间的距离即两点之间的最短路径包含的边数。 突发奇想的温温想要知道,树上有多少个不同的点对,满足两点之间的距离恰好等于k。 注意: ...
分类:其他好文   时间:2020-04-14 16:41:52    阅读次数:90
模拟 - bailian 1833:排列
题目描述 总时间限制: 5000ms 内存限制: 65536kB 描述 题目描述: 大家知道,给出正整数n,则1到n这n个数可以构成n!种排列,把这些排列按照从小到大的顺序(字典顺序)列出,如n=3时,列出1 2 3,1 3 2,2 1 3,2 3 1,3 1 2,3 2 1六个排列。 任务描述: ...
分类:其他好文   时间:2020-04-14 12:40:23    阅读次数:61
推荐算法-协同过滤推荐算法
layout: post title: "推荐算法-协同过滤推荐算法" date: 2020-4-13 9:00:00 categories: [Algorithm] excerpt: "协同过滤推荐算法简介,参考https://zhuanlan.zhihu.com/p/40463528" 协同过滤 ...
分类:编程语言   时间:2020-04-13 19:53:21    阅读次数:77
acwing_01背包
#include <iostream>#include <algorithm>using namespace std;const int MAX=1010;int f[MAX][MAX];//表示装了前i个背包后的最大价值是多少int v[MAX],w[MAX];int main(){ int n, ...
分类:Windows程序   时间:2020-04-13 00:46:03    阅读次数:80
2019-2020 ACM-ICPC Latin American Regional Programming Contest A- Algorithm Teaching 二分图
``` #include #define f first #define s second using namespace std; typedef long long ll; const int N=300005; typedef pair P; int n,tot,t,V; map mp; ma... ...
分类:其他好文   时间:2020-04-12 18:18:38    阅读次数:100
共11758条   上一页 1 ... 57 58 59 60 61 ... 1176 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!