求简单环,即求点=边数的点双分量,加上判断点和边的模板即可 const int maxm = 1e5+5; int head[maxm<<1], edgecnt, dfn[maxm], low[maxm], bcc_cnt, bccnum[maxm], dfs_clock, s[maxm], top ...
分类:
其他好文 时间:
2020-02-04 13:47:50
阅读次数:
76
源程序: #include<iostream>using namespace std; class pointer{public: int a; int *p; //指向整型数的指针 pointer() { a=100; p=new int(10); } pointer(const pointer ...
分类:
其他好文 时间:
2020-02-04 13:45:17
阅读次数:
58
打开VSCode安装目录,找到workbench.desktop.main.css文件 在最后一行添加以下代码: body{ pointer-events:auto !important; background-size:100% !important; opacity: 0.8 !importan ...
分类:
其他好文 时间:
2020-02-02 15:44:22
阅读次数:
214
浅拷贝: 浅表复制 (shallow copy):对象拷贝时,如果字段是「值类型 (Value Type)」,则直接复制其值 (亦即复制整个字段);若字段为「引用类型 (Reference Type)」,则只复制其「引用 (reference; pointer)」,但不复制引用的字段,亦即若更改了任 ...
分类:
其他好文 时间:
2020-02-01 21:28:04
阅读次数:
75
1. 指针 package main import "fmt" func main() { /* 指针:pointer 存储了另一个变量的内存地址的变量。 */ //1.定义一个int类型的变量 a := 10 fmt.Println("a的数值是:",a) //10 fmt.Printf("%T\ ...
分类:
其他好文 时间:
2020-02-01 11:06:43
阅读次数:
96
1. 函数的数据类型 package main import "fmt" func main() { /* go语言的数据类型: 基本数据类型: int,float,bool,string 复合数据类型: array,slice,map,function,pointer,struct,interfa ...
分类:
其他好文 时间:
2020-02-01 10:54:14
阅读次数:
65
链接:https://leetcode-cn.com/problems/copy-list-with-random-pointer 给定一个链表,每个节点包含一个额外增加的随机指针,该指针可以指向链表中的任何节点或空节点。 要求返回这个链表的 深拷贝。 我们用一个由 n 个节点组成的链表来表示输入/ ...
分类:
其他好文 时间:
2020-02-01 00:58:26
阅读次数:
132
1. 数组的创建和使用 package main import "fmt" func main() { /* 数据类型: 基本类型:整数,浮点,布尔,字符串 复合类型:array,slice,map,struct,pointer,function,channel。。。 数组: 1.概念:存储一组相同 ...
分类:
编程语言 时间:
2020-01-31 12:19:45
阅读次数:
88
B. Infinite Prefixes time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given strin ...
分类:
其他好文 时间:
2020-01-31 00:33:00
阅读次数:
88