码迷,mamicode.com
首页 >  
搜索关键字:generic algorithm    ( 18934个结果
PTA 乙级 1050 螺旋矩阵 (25分) C++
这题真的是想了老半天,也不太会,看了看别人的,学习学习 1 #include<iostream> 2 #include<algorithm> 3 #include<vector> 4 #include<cmath> 5 using namespace std; 6 /*用于排序的二维数组*/ 7 i ...
分类:编程语言   时间:2020-08-18 13:13:41    阅读次数:62
C#脚本
脚本是附加在游戏物体上用于定义游戏对象行为的指令代码 附加到游戏物体的脚本类必须从MonoBehaviour类继承 脚本初始化: using System.Collections; using System.Collections.Generic; using UnityEngine; public ...
分类:Windows程序   时间:2020-08-17 17:14:51    阅读次数:90
计蒜客 T1725 国王的魔镜
首先取出这个项链的长度x,如果他是回文数的话让项链减去一半,x减去一半,如果他不是回文数,就退出循环 上代码: #include <iostream>#include <cstdio>#include <cmath>#include <cstring>#include <algorithm>#inc ...
分类:其他好文   时间:2020-08-13 12:13:39    阅读次数:53
03-java实现双向链表
本人git https://github.com/bigeyes-debug/Algorithm 一丶双向链表 单向链表只能通过node单向next从头遍历链表,只能直接获得后继,无法获得前驱 双向链表增加prev属性,prev属性指向前驱 双向链表可以从first 和last两个方向开始查找 二丶 ...
分类:编程语言   时间:2020-08-12 15:43:31    阅读次数:65
.net core 发送邮件
我们很多时候在系统报错,抛异常的时候要提前预警,这个时候邮件是必不可少的。 第一步:首先确定一下,你所使用的方式,是通过外部邮箱(比如QQ还是163)还是内部邮箱 先新建一个model using System; using System.Collections.Generic; using Sys ...
分类:Web程序   时间:2020-08-11 15:57:26    阅读次数:98
JZOJ 1121. Fix
解析 考场时想多了,其实根本不用分阶段 一维状压 \(DP\) 就行了 可我没想清楚,加了个第几次去稳固一个点的阶段 然后时间就炸了!!! \(Code\) #include<cstdio> #include<cmath> #include<algorithm> using namespace st ...
分类:其他好文   时间:2020-08-10 14:33:20    阅读次数:66
.net趣味面试题总结
1.算法面试题:一个List,要求删除里面的男生,不用Linq和Lamda,求各种解,并说明优缺点! using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; na ...
分类:Web程序   时间:2020-08-10 14:29:55    阅读次数:80
P3327 [SDOI2015]约数个数和
#include <iostream> #include <cstdio> #include <queue> #include <algorithm> #include <cmath> #include <cstring> #define inf 2147483647 #define N 10000 ...
分类:其他好文   时间:2020-08-07 12:34:32    阅读次数:75
前缀函数与KMP算法
title: 前缀函数与KMP算法 date: 2020-08-05 tags: 算法 字符串 OI categories: 技术 因为大二的时候全程划水,导致我对KMP只听说过名字。老师似乎都没展开讲,我记得是有一节下课时说这个算拓展内容,可以自己回去研究,所以我印象中还蛮难的。 前段时间在廖雪峰 ...
分类:编程语言   时间:2020-08-06 09:21:03    阅读次数:75
18934条   上一页 1 ... 31 32 33 34 35 ... 1894 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!