题目 https://www.luogu.com.cn/problem/P2121 分析 组织者被要求只能保留 K 条地毯,且保留的地毯构成的图中,任意可互相到达的两点间只能有一种方式互相到达: 要构成只有K条边的最大生成树——使用kruskal 代码 #include<iostream> #inc ...
分类:
其他好文 时间:
2020-06-26 19:55:48
阅读次数:
60
实验二 Java语言基础 一、 实验目的 1熟悉Java基本语法,基本数据类型,各种运算符及表达式的使用。 2掌握运算符优先级,熟悉使用Java的选择语句,循环语句。 二、实验内容 完成如下任务或编写能够满足如下条件的程序(1、2、3中任选两题): 1编写Java Application程序,输出1 ...
分类:
编程语言 时间:
2020-06-26 19:52:06
阅读次数:
74
导入头文件 编写代码过程中,涉及动态内存分配等常用的函数,需要引入如下头文件 #include<stdio.h> #include<stdlib.h> 结构体定义 // 定义二分搜索树结构体 typedef struct Node { int data; struct Node * left; st ...
分类:
编程语言 时间:
2020-06-26 18:43:11
阅读次数:
77
marker是Array类型,赋值的时候只能对整个数组进行更改赋值,不能只改变内部的对象,亲测Vue.$set()也不行 this.marker = [ { latitude: 39.90, longitude: 116.39, iconPath: '../../../static/location ...
分类:
移动开发 时间:
2020-06-26 18:14:22
阅读次数:
941
1 #define Max 50 2 #define ElemType int 3 #define OK 1 4 using namespace std; 5 6 typedef struct Stack //顺序栈的定义 7 { 8 int data[Max]; 9 int top; 10 }St ...
分类:
其他好文 时间:
2020-06-26 18:02:19
阅读次数:
49
裸题:https://ac.nowcoder.com/acm/contest/5929/B #include<bits/stdc++.h> using namespace std; typedef long long ll; const int inf = 0x3f3f3f3f; int n; st ...
分类:
其他好文 时间:
2020-06-26 16:23:42
阅读次数:
104
1 //链式链表c语言版 2 3 typedef struct Node //链式链表定义 4 { 5 struct Node* next; 6 int data; 7 }ListLink; 8 9 ListLink* ListInit()//链式链表初始化 10 { 11 ListLink* he ...
分类:
其他好文 时间:
2020-06-26 16:20:17
阅读次数:
41
github官网:https://github.com/ 点击右上角 Sign In 注册: 注册后,点击 Sign up 登录 登录成功后,进入主页面: (建议读一读 Read the guide) 作者: java1234_小锋 出处:https://www.cnblogs.com/java68 ...
分类:
其他好文 时间:
2020-06-26 16:10:28
阅读次数:
515
/* sysmets.h -- system metrics display structure */ #define NUMLINES ((int) (sizeof sysmetrics / sizeof sysmetrics[0])) struct { int iIndex; TCHAR* sz ...
分类:
其他好文 时间:
2020-06-26 14:54:23
阅读次数:
48
环境 JDK 11 JUnit 4.13 Spring Tool Suite 4.6.2 Maven 3.6.3 与 maven 集成 因为已经是 maven 项目了,所以不再需要任何东西,默认就与 maven 集成了。 不过由于 maven-surefire-plugin 自身的缺陷,导致测试时, ...
分类:
其他好文 时间:
2020-06-26 14:50:42
阅读次数:
63