码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
服务端接收连接代码示例
#include <event2/event.h> #include <event2/listener.h> #include <string.h> #include <iostream> #include <signal.h> #define SPORT 5001 using namespace ...
分类:其他好文   时间:2020-06-07 12:38:01    阅读次数:105
Area区域路由的配置2
using System;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;using Microsoft.AspNetCore.Mvc; namespace LayUICore.Areas ...
分类:其他好文   时间:2020-06-07 10:50:33    阅读次数:62
unity第一周(扫盲)
一. using System;//001.C#支持哪几个预定义的值类型//002.C#支持哪几种预定义的引用类型namespace _001_homework{ class Program { static void Main(string[] args) { //1.valueType(值类型) ...
分类:编程语言   时间:2020-06-07 01:05:10    阅读次数:70
求最大值
#include using namespace std; const int INF=0x3f3f3f3f; int a[1000],b[1000],ans=0,dp[101][200000+10],n,off=100000;//直接偏移,省事 //有两个量互相制约,两个量都单独的条件,这种类型,... ...
分类:其他好文   时间:2020-06-06 22:03:09    阅读次数:77
算法训练-Don't fear, DravDe is kind
#include using namespace std; int n,dp[100001],v[100001],c[100001],l[100001],r[100001],maxx=0,ok[100001],ll,num=0,m=0; vector hash[100000]; //方法:使用一维数... ...
分类:编程语言   时间:2020-06-06 22:02:23    阅读次数:68
二进制优化多重背包
#include using namespace std; const int maxn=1000+10; int n,k,w[maxn],v[maxn],dp[11*maxn]={0},nw[11*maxn],nv[11*maxn],cnt=0,c[maxn]; //01背包二进制拆分 //普通拆... ...
分类:其他好文   时间:2020-06-06 22:01:03    阅读次数:85
背包输出方案数
#include using namespace std; const int maxn=1000+10,mod=1e9+7; int n,k,w[maxn],v[maxn],dp[maxn][maxn]={0},c[maxn][maxn]; //思路,开一个数组c,做辅助数组,因为重复只会发生在d... ...
分类:其他好文   时间:2020-06-06 22:00:44    阅读次数:52
二叉苹果树
#include using namespace std; //二叉苹果树 //j代表保留树枝的总数 //做法一:当j大于子树所能保存的最大的边的时候,值都是最大的边对应的值,导致肯定没有刚好分配边数的值大 int n,dp[110][110]={0},G[100+10][100+10],k,son... ...
分类:移动开发   时间:2020-06-06 21:55:58    阅读次数:76
271. 杨老师的照相排列
#include using namespace std; typedef long long ll; ll dp[32][32][32][32][32],n,k[5]; //枚举最后一个编号最大的同学的位置,DP代表着abcde及这么多个人的总数,那么a-1bcde的总数也可求得 ll DP(in... ...
分类:其他好文   时间:2020-06-06 21:53:40    阅读次数:99
二维背包
#include using namespace std; const int N=100+10; //二维代价的背包问题,就是dpi,j,k 太大了,用滚动数组 //注意滚动数组倒着遍历j int n,dp[N][N]={0},w[N],m[N],v[N],V,M; int main() { ci... ...
分类:其他好文   时间:2020-06-06 21:52:58    阅读次数:61
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!