#include<iostream> #include<cstdio> #include<algorithm> #include<queue> #include<iomanip> #include<cstring> using namespace std; typedef long long ll; ...
分类:
其他好文 时间:
2020-06-04 01:12:55
阅读次数:
61
// var num = 10; // console.log(typeof num); // number // var str = 'eric'; // console.log(typeof str); //string // var flag = true; // console.log(ty ...
分类:
其他好文 时间:
2020-06-03 20:25:14
阅读次数:
68
##typeof六种数据类型 number、string、boolean、object、function、undefined typeof用于检测数据的类型,返回的是相应数据类型的字符串格式。 typeof(typeof(a)) 未经定义的变量在控制台中直接报错,not undefined。只有在t ...
分类:
其他好文 时间:
2020-06-02 22:56:11
阅读次数:
67
坑比输入,比赛时没A掉可惜了 题目描述 这里有一棵树,每个点和每条边都存在一个价值。对于树上点对的价值,包括点对的起点和终点以及路径上边权值之和,不包括路径上其他点值。 求这颗树上最大的点对价值为多少。点对至少需要两个点。 输入描述: 输入t,代表有t组样例。每组样例第一行输入n,代表有n个点。接下 ...
分类:
其他好文 时间:
2020-05-31 22:10:30
阅读次数:
129
4.6、存储 4.6.1、ConfigMap 创建方式 #####文件夹/文件创建 mkdir dir cd dir cat > c1.properties <<EOF c1.name=c1 EOF cat > c2.properties <<EOF c2.name=c2 EOF cd .. cat ...
分类:
其他好文 时间:
2020-05-31 21:39:55
阅读次数:
92
包装类 装箱 Integer i=new Integer(int i) 参数为基本数据类型 Integer i=new Integer(Stirng str) 参数为基本数据类型的字符串,否则会报异常,例如"a" 拆箱 int i2=i.intValue() 备注: jdk1.5之后支持自动装箱与拆 ...
分类:
编程语言 时间:
2020-05-31 21:30:20
阅读次数:
78
#include <stdio.h> void fun(int** q); void fun2(int** q); main() { int* p; //把p的二级指针传给fun fun(&p); printf("%d", *p); //动态分配内存 fun2(&p); } // void fun( ...
分类:
其他好文 时间:
2020-05-31 16:20:15
阅读次数:
62
考虑怎么样构成一张等价的图。 对于一个点,如果这个点有必须点,就在这个点和必须点之间连一条流量为$\infty$的边,这样就保证了选择这个点的同时必然会选择这个点的必须点。 然后考虑那些价值为正的点,我们让源点和它连一条流量为该点价值的边,然后考虑价值为负的,让这个点和汇点流一条流量为这个价值的绝对 ...
分类:
其他好文 时间:
2020-05-31 10:42:06
阅读次数:
52
//***************************************参数辅助对象***************************************/ //公共参数辅助对象 var ObjParameter = { //获取url参数值 //注意:参数值最好不用中文,会有编码 ...
分类:
Web程序 时间:
2020-05-30 11:03:01
阅读次数:
60
比赛链接 ###A Berland Poker 简单题 #include<algorithm> #include<iostream> #include<cstdlib> #include<cstring> #include<cstdio> #include<vector> #include<queu ...
分类:
其他好文 时间:
2020-05-29 22:54:11
阅读次数:
63