码迷,mamicode.com
首页 > 其他好文
vijos 1234 口袋的天空
最小生成树kruscal算法#include#include#include#define maxn 10005using namespace std;struct stu{ int x,y; int t;};stu mapp[maxn];int f[1005];int n,m,k,sum,flag...
分类:其他好文   时间:2015-12-29 22:28:51    阅读次数:195
USACO butter
多次使用dijkstra就行, 代码如下: /* ID: m1500293 LANG: C++ PROG: butter*/#include #include #include #include #include using namespace std;int N, P, C...
分类:其他好文   时间:2015-12-29 22:28:01    阅读次数:273
高并发,高性能的一点调研
常见的异步事件处理框架有:node.jsnettyakkadisruptor消息服务器:zeromq,rabbitmq,kafka,activemq缓存服务器:redismemcachemongodb负载均衡:lvs+nginx
分类:其他好文   时间:2015-12-29 22:28:58    阅读次数:218
12月29日-作业
package app;public class myapp1 { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("有一次...
分类:其他好文   时间:2015-12-29 22:28:36    阅读次数:198
[转] Moran's I
李旭, Matlab: Moran's I 原文地址IntroductionIn statistics, Moran's I is a measure of spatial autocorrelation developed by Patrick Alfred Pierce Moran. Spati...
分类:其他好文   时间:2015-12-29 22:30:37    阅读次数:282
flask中'bool' object has no attribute '__call__'问题
#写flask时报错 Home {% if current_user.is_authenticated() %} Sign Out {% else %} ...
分类:其他好文   时间:2015-12-29 22:29:01    阅读次数:272
高精度乘法程序
对于超过20位的数的乘法问题,我们无法使用普通的方法!!!即使是longlong也会超出范围的!像这样的数,我们只能使用高精度的知识利用数组的方法解决问题!对于高精度乘法的问题,其实思路和高精度加法的思路差不多,都需要使用字符数组来存放每次算完的结果! 1 2 3 *4 5 6 __________...
分类:其他好文   时间:2015-12-29 22:25:50    阅读次数:423
U3D学习使用笔记(二)
1.在移动端www.texture使用时不能实时加载纹理,www.LoadImageIntoTexture使用没问题2.publicFaceFeatureFaceFeatureData{get{returnmFaceFeature;}set{mFaceFeature=value;}}类型调用结构体中...
分类:其他好文   时间:2015-12-29 22:26:46    阅读次数:228
技术杂记-日期时间字符串解析识别
日期时间的格式可谓千奇百怪,做数据汇集相关项目时就会需要识别各种日期时间格式(因为数据来源广泛不可控),然后转换为标准格式或Date类型。
分类:其他好文   时间:2015-12-29 22:26:04    阅读次数:218
左偏堆
左偏堆,顾名思义就是向左偏的堆,也就是左边特别重的堆。左偏堆是一种可并堆,其实现的基本操作是,合并,删除,插入(就是与一个只有一个节点的左偏堆合并)合并操作 1 int merge(int a,int b){ 2 if (a==0) return b; 3 if (b==0) ret...
分类:其他好文   时间:2015-12-29 22:26:43    阅读次数:325
常用yum命令
yum list查询所有可用软件包yum search 关键字查询和关键字相关的包yum -y install 包名加上-y自动回答yesyum -y update 包名升级yum -y remove 包名删除包yumgrouplist列出所有可用的软件组列表yum groupinstall 软件组...
分类:其他好文   时间:2015-12-29 22:24:49    阅读次数:206
如何写一个合格的日志文件
调用下面的方法传入要打印的内容即可/**/ /// /// 写入日志文件 /// /// public static void WriteLogFile(string input) { /...
分类:其他好文   时间:2015-12-29 22:23:50    阅读次数:274
Service#onStartCommand返回值解析
Service#onStartCommand返回值解析Service类有个生命周期方法叫onStartCommand,每次启动服务(startService)都会回调此方法。此方法的原型如下: public int onStartCommand(Intent intent, int flags, int startId) 需要关注的是这个方法有一个整型的返回值,它有以下选项:START_STIC...
分类:其他好文   时间:2015-12-29 21:18:26    阅读次数:295
LeetCode——Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.原题链接:https://oj.leetcode.com/problems/convert-sorted-...
分类:其他好文   时间:2015-12-29 21:15:54    阅读次数:193
蓝桥T291(BFS + 输出路径)
http://lx.lanqiao.org/problem.page?gpid=T291学霸的迷宫 时间限制:1.0s 内存限制:256.0MB问题描述 学霸抢走了大家的作业,班长为了帮同学们找回作业,决定去找学霸决斗。但学霸为了不要别人打扰,住在一个城堡里,城堡外面是一个二维的格子迷宫,要进城.....
分类:其他好文   时间:2015-12-29 21:16:50    阅读次数:322
gradle与maven项目相互转化
gradle这几年发展迅猛,github越来越多的项目都开始采用gradle来构建了,但是并不是所有人都对gradle很熟悉,下面的方法可以把gradle转成maven项目,前提gradle项目目录结构保持跟maven一样的约定,即/src/main/java这一套。一、gradle --> ma....
分类:其他好文   时间:2015-12-29 21:14:23    阅读次数:245
Leetcode OJ --- 322. Coin Change
You are given coins of different denominations and a total amount of moneyamount. Write a function to compute the fewest number of coins that you need...
分类:其他好文   时间:2015-12-29 21:14:50    阅读次数:592
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!