码迷,mamicode.com
首页 >  
搜索关键字:biginteger long    ( 19570个结果
实验二——动态规划·LCS
/*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
实验三——贪心算法&#183;哈夫曼编码
/*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
实验四——回溯法·n皇后
/*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
MySQL性能优化方案
前言 先引用一张图片 目录图 一、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 是什么?和equals是兄弟吗?
秋招的时候还记得面试官问过我hashcode是什么,对于int、long、string类型的hashcode有什么区别,和equals一起是怎么使用的,为什么重写hashcode的同时也要重写equals。八股文背多了,也只是会表面,有空的时候还是整理一下,顺便写了几个例子加深下印象。hashcode是什么?hash一般翻译做“散列”,也有直接音译为“哈希”的,就是把任意长度的输入,通过散列算法,
分类:其他好文   时间:2020-12-19 12:00:52    阅读次数:2
P1873 砍树
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
【.NET】大小端互转,反转字节序
代码已测试 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
[Bzoj1767][Ceoi2009]harbingers (树上斜率优化)
#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
实验4
#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
19570条   上一页 1 ... 28 29 30 31 32 ... 1957 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!