#include<bits/stdc++.h> #define ll long long #define N 100015 #define rep(i,a,n) for (int i=a;i<=n;i++) #define per(i,a,n) for (int i=n;i>=a;i--) #def ...
分类:
其他好文 时间:
2020-11-25 12:45:31
阅读次数:
4
Long.valueOf() 和 Long.parseLong()区别 作用: 将String转化成long类型 区别:(其实不算什么区别,因为本质是一个东西,基本数据类型会自动装拆箱) Long.ValueOf("String") 返回Long包装类型 Long.parseLong("String ...
分类:
其他好文 时间:
2020-11-25 12:36:58
阅读次数:
2
noilinux-1.4.1(g4.8.4)下sizeof(long double a)为12,Windows(g4.9.2)和Deepin(g++8.3.0)下都为16 sort默认从小到大排序,默认使用operator<为比较符 priority_queue,默认大根堆,小根堆为priority ...
分类:
其他好文 时间:
2020-11-25 12:25:36
阅读次数:
6
__int128 是比 long long 还要大的数据类型(\(max = 2^{128}-1\)) 其输入和输出不能用常规方法,用 read() 和 write() 函数代替 #include<bits/stdc++.h> using namespace std; __int128 read(i ...
分类:
其他好文 时间:
2020-11-24 12:37:39
阅读次数:
6
毫秒计算 long startTime = System.currentTimeMillis(); //获取开始时间 // do Something long endTime = System.currentTimeMillis(); //获取结束时间 System.out.println("程序运 ...
分类:
编程语言 时间:
2020-11-23 12:21:38
阅读次数:
8
MongoDB是基于分布式文件存储的数据库。 MongoDB 是一个高性能,开源,无模式的文档型数据库,是当前 NoSql 数据库中比较热门的一种。 他支持的数据结构非常松散,是类似 json 的 bjson 格式,因此可以存储比较复杂的数据类型。 MongoDB 最大的特点是他支持的查询语言非常强 ...
分类:
编程语言 时间:
2020-11-21 12:40:28
阅读次数:
25
##题面 You are given a sequence of n integers a1 , a2 , ... , an in non-decreasing order. In addition to that, you are given several queries consisting ...
分类:
其他好文 时间:
2020-11-21 12:28:36
阅读次数:
7
###P3899 [湖南集训]谈笑风生 二维数点问题,主席树模板(两种写法 #include<bits/stdc++.h> #define IL inline #define LL long long #define pb push_back using namespace std; const i ...
分类:
其他好文 时间:
2020-11-21 12:15:18
阅读次数:
7
DateTimeFormatter formatter= DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");//对象转字符串String timeStr = formatter.format(LocalDateTime.now());System. ...
分类:
编程语言 时间:
2020-11-20 12:18:29
阅读次数:
24
创建: 2020/11/16 简介 运行环境(runtime)相关 静态变量 in InputStream的指针 out PrintStream的指针 实例方法 println print err PrintStream的指针 静态方法 void exit(int code) 0为正常 long c ...
分类:
编程语言 时间:
2020-11-20 12:15:26
阅读次数:
10