/*Hatsune Miku 4ever!*/ #include <bits/stdc++.h> using namespace std; typedef long long ll; #define _for(i,a,b) for(int i = (a);i < b;i ++) #define _r ...
分类:
其他好文 时间:
2020-12-23 11:47:45
阅读次数:
0
/*Hatsune Miku 4ever!*/ #include <bits/stdc++.h> using namespace std; typedef long long ll; #define _for(i,a,b) for(int i = (a);i < b;i ++) #define _r ...
分类:
编程语言 时间:
2020-12-23 11:45:22
阅读次数:
0
/*Hatsune Miku 4ever!*/ #include <bits/stdc++.h> using namespace std; typedef long long ll; #define _for(i,a,b) for(int i = (a);i < b;i ++) #define _r ...
分类:
其他好文 时间:
2020-12-23 11:43:21
阅读次数:
0
前言 先引用一张图片 目录图 一、SQL语句优化 开启慢查询功能 vim /etc/my.cnf [mysqld] slow-query-log = on # 开启慢查询功能 slow_query_log_file = /data/slow-query.log # 慢查询日志存放路径与名称 long ...
分类:
数据库 时间:
2020-12-22 12:33:42
阅读次数:
0
String file = urlConfig.getLocalDir()+videoId+".mp4"; RandomAccessFile randomFile = new RandomAccessFile(new File(file), "r");//只读模式 long contentLengt ...
分类:
其他好文 时间:
2020-12-21 11:43:47
阅读次数:
0
秋招的时候还记得面试官问过我hashcode是什么,对于int、long、string类型的hashcode有什么区别,和equals一起是怎么使用的,为什么重写hashcode的同时也要重写equals。八股文背多了,也只是会表面,有空的时候还是整理一下,顺便写了几个例子加深下印象。hashcode是什么?hash一般翻译做“散列”,也有直接音译为“哈希”的,就是把任意长度的输入,通过散列算法,
分类:
其他好文 时间:
2020-12-19 12:00:52
阅读次数:
2
P1873 砍树 设置 一个判断条件的函数C(x),返回在砍树高度为x时能否得到足够木材.这是很简单的. bool C(long long x){ long long sum = 0; for(int i = 0; i < n; i++) if(s[i] > x) sum += s[i] - x; ...
分类:
其他好文 时间:
2020-12-18 12:24:51
阅读次数:
3
代码已测试 public static long Reverse(long value) { return (((long)Reverse((int)value) & 0xFFFFFFFF) << 32) | ((long)Reverse((int)(value >> 32)) & 0xFFFFFF ...
分类:
Web程序 时间:
2020-12-17 12:57:32
阅读次数:
3
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int MAXN = 100005; struct node{ int pre, to, val; }edge[MAXN << 1]; int n, h ...
分类:
其他好文 时间:
2020-12-16 11:41:51
阅读次数:
3
#include<stdio.h> long long fac( int n ); int main() { int i,n; printf("Enter n:"); scanf("%d",&n); for( i=1;i<=n;++i ) { printf("%d!=%11d\n",i,fac(i) ...
分类:
其他好文 时间:
2020-12-15 12:30:56
阅读次数:
3