码迷,mamicode.com
首页 >  
搜索关键字:long    ( 19145个结果
luogu 【动态规划1】动态规划的引入
P1216 数字三角形 每个节点的值只受左上,右上两节点影响。索引从1开始,避免处理边界问题。 int n,ans,a[1005][1005],dp[1005][1005]; //pull: dp[i][j] = max(dp[i - 1][j - 1], dp[i - 1][j]) + dp[i] ...
分类:其他好文   时间:2020-06-21 20:09:12    阅读次数:61
c++ 1-7 new与delete的运用
1 //用new动态分配float型和long型内存单元,给这些内存单元赋值,并在屏幕上显示它们的值,最后用delete释放 2 #include<iostream> 3 using namespace std; 4 int main() 5 { 6 float *pf=new float; 7 c ...
分类:编程语言   时间:2020-06-21 13:46:31    阅读次数:41
JDK 8之前日期时间API
1.获取系统当前时间:System类中的currentTimeMillis() long time = System.currentTimeMillis(); //返回当前时间与1970年1月1日0时0分0秒之间以毫秒为单位的时间差。 //称为时间戳 System.out.println(time) ...
分类:Windows程序   时间:2020-06-21 12:02:14    阅读次数:80
Linux系统(Centos7)查看,版本/内核/位数
一、查看Centos版本号: 命令:cat /etc/centos-release 二、查看Centos内核: 命令:uname -r 三、查看Centos系统位数: 命令:getconf LONG_BIT ...
分类:系统相关   时间:2020-06-21 11:24:33    阅读次数:148
线程池
使用线程池的原因 多线程是为了用来最大化发挥多核处理器的处理能力,但是线程是不能无限创建的,当线程创建太多时,反而会消耗CPU与内存资源。 线程的创建与销毁是需要时间的,假如一个线程的创建时间加上销毁时间还要远大于服务时间时,是得不偿失的;线程需要占用内存资源,大量线程的创建会占用宝贵内存资源,可以 ...
分类:编程语言   时间:2020-06-21 00:00:26    阅读次数:97
小问题
1、java.lang.StackOverflowError 原因:由于深度递归或程序里有死循环,抛出此错误以指示应用程序的堆栈已耗尽。 检查方法:检查是否在service层调用本类中的方法 2、XXX类 MyFrame 未声明类型为 long 的静态终态 serialVersionUID 字段 解 ...
分类:其他好文   时间:2020-06-20 19:15:17    阅读次数:79
noip2018自测报告
昨天和今天测了一下前年noip tg的题 100+80+20+60+45+0=305pts 应该是大众分了。。刚好压前年我省1=线。。 我还是太弱了/kk 提交的代码: D1T1: #include<bits/stdc++.h> #define ll long long using namespac ...
分类:其他好文   时间:2020-06-20 19:11:30    阅读次数:55
[LeetCode] 1044. Longest Duplicate Substring
Given a string S, consider all duplicated substrings: (contiguous) substrings of S that occur 2 or more times. (The occurrences may overlap.) Return a ...
分类:其他好文   时间:2020-06-20 13:20:54    阅读次数:43
luogu P2756 飞行员配对方案问题 网络流24
匈牙利: #include<iostream> #include<cstdio> #include<algorithm> #include<queue> #include<iomanip> #include<cstring> using namespace std; typedef long lon ...
分类:其他好文   时间:2020-06-20 11:43:20    阅读次数:52
LC 1044. Longest Duplicate Substring
link class Solution { public: const int mod=1E9+7; vector<long long> powerof26; string longestDupSubstring(string S) { int n=S.size(); powerof26.resiz ...
分类:其他好文   时间:2020-06-20 10:58:13    阅读次数:40
19145条   上一页 1 ... 78 79 80 81 82 ... 1915 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!