码迷,mamicode.com
首页 >  
搜索关键字:not find    ( 24186个结果
食物链 POJ - 1182
#include<iostream> #include<cstdio> using namespace std; const int N=100010; int p[N]; int d[N]; int find(int x) { if(p[x]!=x) { int u=find(p[x]); d[x ...
分类:其他好文   时间:2020-02-01 16:15:15    阅读次数:47
HDU2612 Find a way (双广搜)
Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet. Especially a ...
分类:其他好文   时间:2020-02-01 12:50:31    阅读次数:61
L53-Maximum-Subarray
题目描述Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [-2,1,-3,4,-1... ...
分类:其他好文   时间:2020-02-01 12:30:58    阅读次数:94
LeetCode 479 - Largest Palindrome Product - Hard ( Python)
Find the largest palindrome made from the product of two n-digit numbers. Since the result could be very large, you should return the largest palindro ...
分类:编程语言   时间:2020-02-01 10:47:36    阅读次数:78
Pycharm 的安装和使用
1. 下载并安装 Pycharm "windows 版下载地址" 2. 运行 Pycharm 可在 Configure Settings Appearance Theme 设置风格 3. 点击 Create New Project 创建新项目 Test 目录可以是一个空目录(新项目),也可以是包含了 ...
分类:其他好文   时间:2020-02-01 10:21:09    阅读次数:118
PTA乙级 (1029 旧键盘 (20分))
1029 旧键盘 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805292322111488 #include <iostream> #include <cctype> using namespace std ...
分类:其他好文   时间:2020-01-31 23:04:56    阅读次数:73
[算法] 并查集
解决的问题 连接问题:一个结点和另一个结点是否相连 路径问题:一个结点到另一个结点的路径 集合问题:经常使用并集,需要查询元素是否是一类 支持的操作 union(p,q) find(p) isConnected(p,q) 实现方式 Quick Find:数组 Quick Union:数组构建的树 基 ...
分类:编程语言   时间:2020-01-31 19:10:03    阅读次数:86
ASP.NET Core下Ocelot的简单使用
一、创建demo项目 1.新建webapi项目,命名为“DemoProject”,去掉HTTPS勾选 1 using Microsoft.AspNetCore.Mvc; 2 using System.Collections.Generic; 3 4 namespace DemoProject.Con ...
分类:Web程序   时间:2020-01-31 18:51:47    阅读次数:230
字符串类的一些常用方法
字符串和列表一样,都属于序列,既然和列表一样属于序列,就可以用列表的一些方法,比如in,比如count等方法。 s='白日依山尽,黄河入海流' a=s.count(‘日’) 可以统计出这个字符串中有多少个‘日’ 同样,如replace,可以替代字符串中的元素,还有in等 当然还有find,只要搜索元 ...
分类:其他好文   时间:2020-01-31 18:34:37    阅读次数:63
LeetCode 473 - Matchsticks to Square - Medium (Python)
Remember the story of Little Match Girl? By now, you know exactly what matchsticks the little match girl has, please find out a way you can make one s ...
分类:编程语言   时间:2020-01-31 10:39:41    阅读次数:122
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!