码迷,mamicode.com
首页 >  
搜索关键字:turn    ( 27138个结果
[Noi2014] 魔法森林
" 传送门 " Description 给出$n$个点,$m$条边的无向图 每条边有两个权值$a$和$b$ 定义一条路径的代价为边中最大的$a$值和最大的$b$值之和 求从$1$到$n$的最小代价 Solution 把边按照$a$来排序,然后动态维护原树关于$b$的最小生成树,考虑用$lct$来维护 ...
分类:其他好文   时间:2019-05-24 01:08:25    阅读次数:112
django 测试7之教育
setting: STATIC_URL = '/static/' # 上传图片的路径 UPLOAD_ROOT = os.path.join(BASE_DIR,'upload') STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static'), ] STAT ...
分类:其他好文   时间:2019-05-23 23:18:01    阅读次数:149
Clockwork
问题 C: Clockwork时间限制: 1 Sec 内存限制: 128 MB提交: 136 解决: 26[提交] [状态] [命题人:admin] 题目描述 Rabbits are small mammals in the family Lep or idae of the or der Lago ...
分类:其他好文   时间:2019-05-23 22:57:45    阅读次数:147
AJAX封装
封装的一般套路 AJAX封装步骤 1.写出 AJAX 发送请求与接收响应的模板 2.写一个空函数然后将这个模板放进去 3.最后根据变化量抽象参数,以及使用返回值 回调函数 回调:将函数作为参数传递,就好比是将一件事情交给另一个人做(也可以理解为委托) 在这个例子中,ajax异步请求由于函数内部包含返 ...
分类:Web程序   时间:2019-05-23 21:35:27    阅读次数:157
c++简单String类实现
#include #include using namespace std; class String { public: String(const char* str = NULL);//通用构造函数,String("abc") String(const String &str);//拷贝构造 ~... ...
分类:编程语言   时间:2019-05-23 21:30:12    阅读次数:110
【72. 编辑距离】【困难】【线性DP】
给定两个单词 word1 和 word2,计算出将 word1 转换成 word2 所使用的最少操作数 。 你可以对一个单词进行如下三种操作: 插入一个字符 删除一个字符 替换一个字符 示例 1: 输入: word1 = "horse", word2 = "ros" 输出: 3 解释: horse ...
分类:其他好文   时间:2019-05-23 21:09:44    阅读次数:121
PAT甲级——1104 Sum of Number Segments (数学规律、自动转型)
本文同步发布在CSDN:https://blog.csdn.net/weixin_44385565/article/details/90486252 1104 Sum of Number Segments (20 分) 1104 Sum of Number Segments (20 分) 1104  ...
分类:其他好文   时间:2019-05-23 21:08:04    阅读次数:114
智能指针
template class SharedPtr { public: SharedPtr():ptr(new T()),count(new int(1)){}//无参构造 explicit SharedPtr(T *src):ptr(str),count(new int(1)){}//有参构造 ex... ...
分类:其他好文   时间:2019-05-23 21:01:02    阅读次数:89
leetCode 5. Longest Palindromic Substring
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: ...
分类:其他好文   时间:2019-05-23 20:55:16    阅读次数:101
实验五
实验结论 1、二分查找 ex1_1.cpp // 练习:使用二分查找,在一组有序元素中查找数据项 // 形参是数组,实参是数组名 #include <stdio.h> const int N=5; int binarySearch(int x[], int n, int item); int mai ...
分类:其他好文   时间:2019-05-23 20:51:49    阅读次数:87
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!