[FZYZOJ 1073] Password 题解
分类:
其他好文 时间:
2015-06-25 00:04:21
阅读次数:
147
CocoSourcesCS 3 1 /*---------------------------------------------------------------------- 2 Compiler Generator Coco/R, 3 Copyright (c) 1990, 2004 ...
分类:
其他好文 时间:
2015-06-25 00:02:48
阅读次数:
250
Determining the number of clusters/segments in hierarchical clustering/segmentation algorithms由于unique函数在这里找矩阵不同元素的时不能有效得到,所以自己编了小程序实现。Matlab codeL:cl...
分类:
其他好文 时间:
2015-06-25 00:03:48
阅读次数:
158
1. 定义 Animal 类 public class Animal{ } 定义 Dog类,继承 Animal public class Dog : Animal{ }2. 变量是一个标签,对象是实际存在的东西,赋值号"="就是贴标签的过程 Dog dog = new Dog(); //...
分类:
其他好文 时间:
2015-06-25 00:04:03
阅读次数:
130
英文原文:Coding Culture: How To Build Better Products by Building Stronger Teams 译/丛一 软件开发人员通常会付出大量的时间和精力在如何构建最好的产品上。我们常会纠结应该使用哪种Web框架,是用NoSQL数据库还是SQL数据.....
分类:
其他好文 时间:
2015-06-25 00:02:41
阅读次数:
347
package copy;import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.FileInputStream;import java.io.FileOutputStream;imp...
分类:
其他好文 时间:
2015-06-25 00:03:30
阅读次数:
218
1. Question求二叉树的最大深度。Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node do...
分类:
其他好文 时间:
2015-06-25 00:00:30
阅读次数:
281
#include #include #include #include #define minisize 1 typedef struct freeTable { char proID[6]; int startAddr; /*空闲区起始地址*/ int length;...
分类:
其他好文 时间:
2015-06-25 00:00:30
阅读次数:
338
观察者模式完美的将观察者和被观察的对象分离开。 举个例子, 用户界面可以作为一个观察者,业务数据是被观察者,用户界面观察业务数据的变化,发现数据变化后,就显示在界面上。面向对象设计的一个原则是:系统中的每个类将重点放在某一个功能上,而不是其他方面。 一个对象只做一件事情, 并且将他做好。 观察者模式...
分类:
其他好文 时间:
2015-06-25 00:01:05
阅读次数:
306
题意:有一个正n边形的斗兽场,现存有3根柱子,柱子位于正n边形的任意3个节点上。求出正n边形的最小面积。 1 #include 2 #include 3 #include 4 #include //采用三角函数大部分使用弧度 5 #include 6 #include 7 using na...
分类:
其他好文 时间:
2015-06-25 00:01:55
阅读次数:
426
求连通分量Sample Input10 91 21 31 41 51 61 71 81 91 1010 42 34 54 85 80 0Sample OutputCase 1: 1Case 2: 7 1 # include 2 # include 3 # include 4 # include...
分类:
其他好文 时间:
2015-06-24 23:59:27
阅读次数:
336
获取Ext Tree选中的节点 1 text: '确认', 2 handler: function () { 3 //获取当前选中树的节点方法 4 ...
分类:
其他好文 时间:
2015-06-24 23:59:17
阅读次数:
283
简单演练func sum(a: Int, b: Int) -> Int { return a + b}阶段性小结函数定义格式:func 函数名(参数: 参数类型...) -> 返回值 { // 代码实现 }如果没有返回值,-> 返回值可以省略->是一个很有意思的符号默认情况下,在调用函数时,第...
分类:
其他好文 时间:
2015-06-24 23:58:02
阅读次数:
197
在linux系统维护过程中,经常需要解决各种各样的需求,最简单的方式还是用linux系统本身的shell,最简单有效这个网站很好推荐给大家点这里1.释放内存:cat monitor_mem.sh#!/bin/bashused=`free -m | awk 'NR==2' | awk '{print ...
分类:
其他好文 时间:
2015-06-24 23:57:08
阅读次数:
325
Rabbitmq集群高可用RabbitMQ是用erlang开发的,集群非常方便,因为erlang天生就是一门分布式语言,但其本身并不支持负载均衡。Rabbit模式大概分为以下三种:单一模式、普通模式、镜像模式单一模式:最简单的情况,非集群模式。没什么好说的。普通模式:默认的集群模式。对于Queue来...
分类:
其他好文 时间:
2015-06-24 23:57:19
阅读次数:
657
OC风格的for// 传统写法for var i = 0; i < 10; i++ { println(i)}Swift风格的for// 遍历 0 ~ <10for i in 0..<10 { println(i)}println("---")// 遍历 0 ~ 10for i in 0...
分类:
其他好文 时间:
2015-06-24 23:59:05
阅读次数:
243
Bootstrap框架中checkbox和radio有点特殊,Bootstrap针对他们做了一些特殊化处理,主要是checkbox和radio与label标签配合使用会出现一些小问题(最头痛的是对齐问题)。使用Bootstrap框架,开发人员无需考虑太多。 案例1 ...
分类:
其他好文 时间:
2015-06-24 23:56:26
阅读次数:
100