码迷,mamicode.com
首页 > 2015年08月08日 > 全部分享
A Mathematical Curiosity 水
A - A Mathematical Curiosity Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64u Submit Status Description Given two integers n and m, count the number of pair...
分类:移动开发   时间:2015-08-08 18:20:03    阅读次数:159
Linux $HOME下文件记录(Vim/Shell)
1.vim编辑器(脚本)配置文件 -rw-------    1 xqzhang  254449427    19K Aug  8 17:06 .viminfo -rw-r--r--    1 xqzhang  254449427   4.3K Jul 26 11:25 .vimrc drwxr-xr-x   12 xqzhang  254449427   408B Jul 27 10:...
分类:系统相关   时间:2015-08-08 18:19:01    阅读次数:186
根据地名检索该地名的经纬度等信息
问题描述:在地图中根据一个地名来检索该地名的经纬度信息 准备工作:相应的地图服务支持,包括地图数据的支持,arcgis的api包 代码展示: //需要引入arcgis的api require([ "esri.task.FindTask", "esri.task.FindParameters", "esri.task.QueryTask", "esri.task...
分类:其他好文   时间:2015-08-08 18:18:02    阅读次数:171
Ignatius and the Princess IV 水
B - Ignatius and the Princess IV Time Limit:1000MS     Memory Limit:32767KB     64bit IO Format:%I64d & %I64u Submit Status Description "OK, you are not too bad, em... But you can neve...
分类:其他好文   时间:2015-08-08 18:17:41    阅读次数:120
C++(18)再谈指针
指针的概念 指针是一个特殊的变量,它里面存储的数值被解释成为内存里的一个地址。要搞清一个指针需要搞清指针的四方面的内容:指针的类型,指针所指向的类型,指针的值或者叫指针所指向的内存区,还有指针本身所占据的内存区。让我们分别说明。  先声明几个指针放着做例子:   例一:   int *ptr; char *ptr; int **ptr; int (*ptr)...
分类:编程语言   时间:2015-08-08 18:17:19    阅读次数:228
利用Java反射机制和泛型,全自动解析json
有啦这个简直,太爽啦, 利用Java 反射机制,利用Class 就可以得到 类的 变量  Field[] fields=cls.getDeclaredFields(); 还可以通过类中 的方法名字 去执行这个方法  m1 = cls.getDeclaredMethod(getMothodName(fields[j].getName()), String.class); m1.invoke(...
分类:编程语言   时间:2015-08-08 18:18:59    阅读次数:295
pat-advanced(1073-1076)
1073. Scientific Notation (20) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 HOU, Qiming Scientific notation is the way that...
分类:其他好文   时间:2015-08-08 18:18:20    阅读次数:109
[leetcode 235]Lowest Common Ancestor of a Binary Search Tree
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined betw...
分类:其他好文   时间:2015-08-08 18:16:58    阅读次数:132
_DataStructure_C_Impl:稀疏矩阵十字链表存储
#include #include typedef int DataType; typedef struct OLNode{ int i,j; DataType e; struct OLNode *right,*down; }OLNode,*OLink; typedef struct{ OLink *rowhead,*colhead; int m,n,len; }CrossList; /...
分类:其他好文   时间:2015-08-08 18:19:16    阅读次数:144
_DataStructure_C_Impl:广义表头尾链表存储
#include #include #include #include"SeqString.h" typedef char AtomType; typedef enum{ATOM,LIST} ElemTag;//ATOM=0,表示原子,LIST=1,表示子表 typedef struct Node { ElemTag tag; /*标志位tag用于区分元素是原子还是子表*/ union...
分类:其他好文   时间:2015-08-08 18:18:16    阅读次数:119
Hdu oj 1004 Let the Balloon Rise
分析:用二维数组存放字符串,另外在比较count[i]的大小时,注意保留数组的下标。 #include #include char str[1010][16]; int count[1010]; int main() { int m; while(scanf("%d",&m),m) { int i,j; int max,k; for(i=0;i<m...
分类:其他好文   时间:2015-08-08 18:18:27    阅读次数:96
_DataStructure_C_Impl:广义表的扩展线性链表存储
#include #include #include #include"SeqString.h" typedef char AtomType; typedef enum{ATOM,LIST} ElemTag;//ATOM=0,表示原子,LIST=1,表示子表 typedef struct GLNode{ ElemTag tag; //标志位tag用于区分元素是原子还是子表 union{ ...
分类:其他好文   时间:2015-08-08 18:18:27    阅读次数:122
macox下编译snappy静态库
源码地址:https://github.com/google/snappy 下载 git clone https://github.com/google/snappy 编译 进入snappy源码目录,执行命令: ./autogen.sh 报错 “./autogen.sh: line 3: aclocal: command not found” 通过http://superuser.com/q...
分类:移动开发   时间:2015-08-08 18:17:05    阅读次数:145
[笔记][Java7并发编程实战手册]2.4在同步代码中使用条件-生产者与消费者
说明在并发编程中一个典型的问题是生产者–消费者问题。在程序中,有可能会需要用到两个线程通信的情况,比如生产者消费者中,获取一个共享数据,有就消费。没有就等待着生产者生产之后再继续消费。那么这个实现过程就可以使用wait();notify();notifyAll()来达到效果; 以上方法详细解说请查看: Java多线程系列–“基础篇”05之 线程等待与唤醒例子/** * Created by zh...
分类:编程语言   时间:2015-08-08 18:15:44    阅读次数:223
9.9递归和动态规划(一)——小孩上楼梯的方式的种类
/**  * 功能:有个小孩正在上楼梯,楼梯有n阶台阶,小孩一次可以上1阶、2阶或3阶。计算小孩上楼梯的方式有多少种。  */ 两种方法: 方法一: //递归法 /** * 思路:自上而下的方式。 * 最后一步可能是从第n-1阶往上走1阶、从第n-2阶往上走2阶或从第n-3阶往上走3阶。 * 因此,抵达最后一阶的走法,抵达这最后三阶的方式的综合。 * ...
分类:其他好文   时间:2015-08-08 18:16:50    阅读次数:2006
《小强升职记》 读书笔记
《无压工作的艺术》是时间管理的圣经,这本书则是《无压工作的艺术》的本土版;  作者用讲故事的方式描述了一个职场新手成长的过程,又可谓是圣经的实践版;   本人评分 5分;  唯一的缺点,就是这本书的名字太俗;不过话说回来,正是大俗,才带来了世俗中的广泛传播; 书的章节命名也挺有意思,从一个种子发芽说起,直到开花结果; 寻找种子 时间管理方法的执行,是一个锻炼自我的过程,...
分类:其他好文   时间:2015-08-08 18:17:40    阅读次数:206
ZOJ 题目3228 Searching the String(AC自动机)
Searching the String Time Limit: 7 Seconds      Memory Limit: 129872 KB Little jay really hates to deal with string. But moondy likes it very much, and she's so mischievous that she often giv...
分类:其他好文   时间:2015-08-08 18:16:40    阅读次数:107
1614条   上一页 1 ... 27 28 29 30 31 32 33 ... 95 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!