码迷,mamicode.com
首页 >  
搜索关键字:xunsearch namespace    ( 41960个结果
E - Number of Simple Paths
一个图,n个点,n条边,没有重边和自环。 那么多出的一条边必定使他成为基环树。 要求去计算简单路径的个数。 简单路径:与方向无关的路径。 又因为在树上,两点的路径唯一确定,那么路径仅仅与起点与终点有关。 也就是C(2,n)这样。 但是如果路径经过环,那么中间经过环的部分就可以有两种走法。 也就是说答 ...
分类:其他好文   时间:2021-03-15 10:49:05    阅读次数:0
C#的格式化输出字符串
using System; //导入命名空间 using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lesson_one //这里 ...
分类:Windows程序   时间:2021-03-12 14:18:50    阅读次数:0
C#数据库连接
SQLMANAGE 数据库连接管理 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;u ...
分类:数据库   时间:2021-03-12 14:16:14    阅读次数:0
C++11 shared_ptr(智能指针)详解
要确保用 new 动态分配的内存空间在程序的各条执行路径都能被释放是一件麻烦的事情。C++ 11 模板库的 <memory> 头文件中定义的智能指针,即 shared _ptr 模板,就是用来部分解决这个问题的。只要将 new 运算符返回的指针 p 交给一个 shared_ptr 对象“托管”,就不 ...
分类:编程语言   时间:2021-03-10 13:24:26    阅读次数:0
顺序表
1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 #include <cmath> 5 #include <cstring> 6 #include <cstdlib> 7 using namespace std; 8 ...
分类:其他好文   时间:2021-03-10 13:13:30    阅读次数:0
[模板]最小圆覆盖
#include <bits/stdc++.h> using namespace std; const double EPS = 1e-8; const int N = 1e5+10; struct Point{ double x, y; }; int n; Point p[N]; bool equ ...
分类:其他好文   时间:2021-03-10 12:57:35    阅读次数:0
P1855 榨取kkksc03
[Aimee](P1855 榨取kkksc03) 很简单的dp #include<iostream> #include<cstring> using namespace std; int n,m,t; int mi[1000]; int ti[1000]; int dp[201][301][201] ...
分类:其他好文   时间:2021-03-08 13:47:33    阅读次数:0
STL之queue 与 priority_queue
queue //STL之queue用法 //实现先进先出 #include<stdio.h> #include<queue> using namespace std; int main() { //定义 queue<int> qu; //进队 qu.push(1); qu.push(2); qu.p ...
分类:其他好文   时间:2021-03-08 13:44:24    阅读次数:0
在scanf函数中占位符使用错误而产生的一些错误
出现的问题 在做编程题的的时候,遇到了一个很奇怪的错误,出问题的代码如下: 1 #include <cstdio> 2 using namespace std; 3 4 int main() { 5 int c; 6 bool b; 7 // printf("%p %p", &c, &b); // ...
分类:其他好文   时间:2021-03-08 13:38:55    阅读次数:0
STL之map
//STL之MAP用法 //以往定义的数组实现了int类型向其他类型的映射 //现在想要实现其他类型向其他类型的映射 //通过map实现键值对存储 #include<stdio.h> #include<map> using namespace std; int main() { //定义 map<c ...
分类:其他好文   时间:2021-03-08 13:34:05    阅读次数:0
41960条   上一页 1 ... 26 27 28 29 30 ... 4196 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!