首页 > 其他
POJ 1163
The TriangleTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 40041Accepted: 24119Description73 88 1 02 7 4 44 5 2 6 5(Figu...
分类:其他   时间:2015-05-22 08:12:48    收藏:0  评论:0  赞:0  阅读:180
hdu 1690 Bus System
floyd算法。这题目比较操蛋,首先INF需要比较大,我选择了INF = 0xffffffffffffff。还有一点就是%lld会挂掉的,用%I64d才能AC。#include#include#include#includeusing namespace std;const int maxn = 1...
分类:其他   时间:2015-05-22 08:12:29    收藏:0  评论:0  赞:0  阅读:138
POJ 2350
Above AverageTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 15028Accepted: 7875DescriptionIt is said that 90% of frosh expect to be above av...
分类:其他   时间:2015-05-22 08:12:18    收藏:0  评论:0  赞:0  阅读:154
Dribbo
https://github.com/ikew0ng/Dribbohttps://github.com/eltld/Dribbo
分类:其他   时间:2015-05-22 08:12:08    收藏:0  评论:0  赞:0  阅读:204
121 Best time to buy and sell stock i
public class Solution { public int maxProfit(int[] prices) { if(prices == null || prices.length == 0) { return 0; } ...
分类:其他   时间:2015-05-22 08:11:48    收藏:0  评论:0  赞:0  阅读:91
ES6 Map/WeakMap
JS的对象本身就是个键值结构,ES6为什么还需要加Map呢。一、Map1. Map构造器先看Map的简单用法// 字符串作为key, 和JS对象类似var map = new Map()// setmap.set('name', 'John')map.set('age', 29)// getmap....
分类:其他   时间:2015-05-22 08:11:39    收藏:0  评论:0  赞:0  阅读:156
core 标签简单使用
core 标签
分类:其他   时间:2015-05-22 08:10:28    收藏:0  评论:0  赞:0  阅读:165
实现JDK没有提供的AtomicFloat
Java8内置了强大的多核支持,我们在处理数据的时候,如果不充分利用多核,都好不意思跟老板打招呼。 我们经常会使用AtomicInteger来做计数器,如下所示: List<String>?words?=?Files.readAllLines(Paths.get(...
分类:其他   时间:2015-05-22 07:08:59    收藏:0  评论:0  赞:0  阅读:155
Vagrant
Installing the Vagrant VM for Full Stack Foundations1. you need to install Git, VirtualBox, Vagrant2. in git, run the command, create a folder called ...
分类:其他   时间:2015-05-22 07:04:28    收藏:0  评论:0  赞:0  阅读:265
nicehair
https://github.com/lanyj189/nicehairhttps://github.com/eltld/nicehairhttps://github.com/pepoc/CustomViewGatherhttps://github.com/yueyueniao2012/Expand...
分类:其他   时间:2015-05-22 07:03:58    收藏:0  评论:0  赞:0  阅读:266
MemoryMonitor
https://github.com/cundong/MemoryMonitorhttps://github.com/eltld/MemoryMonitor
分类:其他   时间:2015-05-22 07:03:28    收藏:0  评论:0  赞:0  阅读:205
每天一段笔记-观察者模式(Observer pattern)
知识点 使对象之间达到松耦合的效果。 观察者模式定义了对象之间一对多的关系。主题用一个共同的接口来更新观察者。 观察者和被观察者之间通过松耦合的方式结合,被观察者不用理会观察者的实现细节,只需要观察者实现了观察接口(即所谓的注册)。示例代码 public interface Subje...
分类:其他   时间:2015-05-22 07:03:08    收藏:0  评论:0  赞:0  阅读:245
Repeated DNA Sequences
比较难的一道题,但是还是能看懂public class Solution { public List findRepeatedDnaSequences(String s) { // ref http://blog.csdn.net/haiyi727/article/details...
分类:其他   时间:2015-05-22 07:02:38    收藏:0  评论:0  赞:0  阅读:221
Qt Creator Shortcuts 快捷键大全
编号快捷键功能1Esc切换到代码编辑状态2F1查看帮助(选中某一类或函数,按下F1,出现帮助文档)3F2在光标选中对象的声明和定义之间切换(和Ctrl+鼠标左键一样的效果,选中某一类或函数,按下F2,迅速定位到该类或函数声明的地方或被调用的地方)4F3查找下一个5F4头文件和源文件之间切换6F5开始...
分类:其他   时间:2015-05-22 07:02:28    收藏:0  评论:0  赞:0  阅读:240
Gray Code
public class Solution { public ArrayList grayCode(int n) { if(n==0){ ArrayList res = new ArrayList(); res.add(0); ...
分类:其他   时间:2015-05-22 07:02:18    收藏:0  评论:0  赞:0  阅读:205
hdu 4111 Alice and Bob 记忆化搜索 博弈论
Alice and BobTime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=4111DescriptionAlice and Bob are very smart guys and ...
分类:其他   时间:2015-05-22 07:01:18    收藏:0  评论:0  赞:0  阅读:249
nginx负载均衡策略之加权轮询分析
nginx负载均衡策略之加权轮询分析——lvyilong316 nginx做为方向代理时,能够为后端服务器提供负载均衡的功能,其中加权轮询策略使是其默认的负载均衡策略。 直观上就是将...
分类:其他   时间:2015-05-22 02:28:04    收藏:0  评论:0  赞:0  阅读:226
play2.x笔记 官网内容翻译+截取 第二章
本文来自 fair-jm.iteye.com 转截请注明出处 ? ?? play的官方文档(for scala) 第二章的笔记 有兴趣的可以看下 有错误欢迎指出 ? ? Handling asynchronous results Streaming HTTP responses Comet sockets WebSockets ? ? 1、Handling asynchrono ...
分类:其他   时间:2015-05-22 02:23:04    收藏:0  评论:0  赞:0  阅读:247
excel模板报表导出
最近项目有需求要做几个报表,页面涉及行列的合并和分组,费了九牛二虎之力把jsp页面展示给做完了,但是更困难的其实是导出功能,简单的excel导出大致就是第一行标题,后续数据,使用poi包的HSSFWorkbook等工具类就可以实现,这里不做赘述。但LZ这次的需求涉及行和列的合并,带参数的标题头等苦难,用代码控制略显繁琐,且不容易操作。LZ无奈借助百度君,找到jxls模板语言导出模板 ...
分类:其他   时间:2015-05-22 02:21:24    收藏:0  评论:0  赞:0  阅读:289
虚拟机vbox给vdi增加容量到16G后的一系列操作
虚拟机vbox给vdi增加容量到16G后的一系列操作windows 下:cmdVbox/bin下1.#VBoxManage modifyhd "cloned.vdi" --resize 16000? //这里的单位是M? // windows2.fdisk? /dev/sda 格式化sda,原来只有sda1,sda2,加一个sd3:【图是安装好后截图的,请忽略里面的sda3】照 ...
分类:其他   时间:2015-05-22 02:18:29    收藏:0  评论:0  赞:0  阅读:243
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!