全排序问题:输入一个按字符序升序的无重复字母字符串,输出所有按字典升序的排列组合 #include<iostream> #include<string> #include<algorithm> #include<map> using namespace std; string s; map<stri ...
分类:
编程语言 时间:
2020-04-16 00:41:05
阅读次数:
100
官方依赖版本: 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
#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
题意:将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) "题目链接" "参考博客" ...
分类:
其他好文 时间:
2020-04-14 18:41:30
阅读次数:
51
问题 A: 树上距离 懒惰的温温今天上班也在偷懒。盯着窗外发呆的温温发现,透过窗户正巧能看到一棵n个节点的树。一棵n个节点的树包含n 1条边,且n个节点是联通的。树上两点之间的距离即两点之间的最短路径包含的边数。 突发奇想的温温想要知道,树上有多少个不同的点对,满足两点之间的距离恰好等于k。 注意: ...
分类:
其他好文 时间:
2020-04-14 16:41:52
阅读次数:
90
题目描述 总时间限制: 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
#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, ...
``` #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