码迷,mamicode.com
首页 >  
搜索关键字:set list map的映射    ( 106240个结果
HDU - 6005 Pandaland (无向图最小环,动态加边Dijkstra)
题目链接 题意:求无向图最小环(n<=8000,m<=4000) 动态把边加进去跑Dij,在加入一条边(u,v,c)之前,先求出mindis(u,v),更新答案ans=min(ans,mindis(u,v)+c),复杂度$O(m^2logn)$ 1 #include<bits/stdc++.h> 2 ...
分类:其他好文   时间:2021-04-06 14:28:01    阅读次数:0
LeetCode1
解法1 class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: dit = {} for i in range(len(nums)): other = target - nums[i] if other ...
分类:其他好文   时间:2021-04-06 14:26:04    阅读次数:0
vue技能总结
1:传值 隔代传值通过v-bind = “$attrs”. 2:传方法 v-on=“$listeners” 就可以在子组件调用父组件的方法 ,this.$emit("methodsFromParent") 3:子传父 slot 孩子: <slot name="aa" :foo="'foooooooo ...
分类:其他好文   时间:2021-04-06 14:17:01    阅读次数:0
160. 相交链表
题目链接 解题思路:双指针 C++: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} ...
分类:其他好文   时间:2021-04-06 14:05:05    阅读次数:0
HTML(五)列表
HTML(五)列表 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>ListStudy</title> </head> <body> <!--有序列表--> <ol> <li>Java基础</li> <li> ...
分类:Web程序   时间:2021-04-06 14:04:47    阅读次数:0
python开发基础(三)集合
s = set('hello,word') print(s) #set 方法 s = {'xiaoming', 'xiaoming', 'xiaoming1'} print(s) s.add('s') # 添加元素 s.clear(s) # 清空集合 s1 = s.copy(s) # 复制集合 s. ...
分类:编程语言   时间:2021-04-05 12:51:32    阅读次数:0
mysql中json取,查,改,去双引号
idtitleattr 1 李白 {“banji”:“1班”,“xueduan”:“初三”,“xuexiao”:“某某一中”,“jiaoshi_id”:“11,12”} 取值:json_extract(json字段,"$.key值"); 取学校: select json_extract(attr," ...
分类:数据库   时间:2021-04-05 12:44:17    阅读次数:0
vscode国内镜像
https://az764295.vo.msecnd.net/stable/c185983a683d14c396952dd432459097bc7f757f/VSCodeSetup-x64-1.55.0.exe 替换成 https://vscode.cdn.azure.cn/stable/c1859 ...
分类:其他好文   时间:2021-04-05 12:35:11    阅读次数:0
4D - Mysterious Present 二维最长上升子序列
原题链接https://codeforces.com/problemset/problem/4/D 题意:给你n个二元组和起始条件,求其最大二维上升子序列,并输出选择编号。 思路:按照一个维度排序,然后DP即可,注意细节。 代码如下 int n, w, h; struct node{ int w, ...
分类:其他好文   时间:2021-04-05 12:33:56    阅读次数:0
LeetCode——412. Fizz Buzz
题目描述 题干: 写一个程序,输出从 1 到 n 数字的字符串表示。 1. 如果 n 是3的倍数,输出“Fizz”; 2. 如果 n 是5的倍数,输出“Buzz”; 3.如果 n 同时是3和5的倍数,输出 “FizzBuzz”。 实例: n = 15, 返回: [ "1", "2", "Fizz", ...
分类:其他好文   时间:2021-04-05 12:31:23    阅读次数:0
106240条   上一页 1 ... 83 84 85 86 87 ... 10624 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!