HDU 3065,模板(备忘录)#include#include#include#include#includeusing namespace std;#define M 2222222char sx[1111][128];int n;char s[M];struct Trie{ ...
分类:
其他好文 时间:
2014-07-08 22:48:34
阅读次数:
192
作者原创文章,原文出处请访问:http://blog.csdn.net/yihui823/article/details/6778351记得自己第一次当PM。那是接手的项目,原来的PM,在项目需求分析做完之后,去接手另一个重要的项目去了。当时我和另外两个小组长,自然就成了接手PM的人选。最终原PM选...
分类:
其他好文 时间:
2014-07-08 22:51:24
阅读次数:
213
最近在练机试题,常用的C和C++输入输出如下:1 scanf 和printfint a; scanf("%d",&a) ; printf("%d",a); printf("\n");double b;scanf("%");char c; scanf("%c",&c);printf("%c",c);l...
分类:
其他好文 时间:
2014-07-08 22:53:52
阅读次数:
257
BACKGROUNDThis disclosure relates generally to the field of computer graphics. More particularly, but not by way of limitation, it relates to techniqu...
分类:
其他好文 时间:
2014-07-08 22:52:36
阅读次数:
254
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
分类:
其他好文 时间:
2014-07-08 22:54:28
阅读次数:
287
//输入数字的汉语拼音,每个拼音的首字母大写。输出该数字的阿拉伯数字。//JiuBaiJiuShiJiu -> 999#include#includeint result = 0;void add(int n,char wei[]){ if(strcmp(wei,"Wan") == 0) ...
分类:
其他好文 时间:
2014-07-08 22:55:14
阅读次数:
387
喷水装置(二)时间限制:3000ms | 内存限制:65535KB难度:4描述有一块草坪,横向长w,纵向长为h,在它的橫向中心线上不同位置处装有n(n 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 ...
分类:
其他好文 时间:
2014-07-08 22:55:52
阅读次数:
273
还没有修改hosts,请先按前文修改。 还没安装java的,请按照前文配置。 (1)增加用户并设立公钥: sudo addgroup hadoop sudo adduser --ingroup hadoop hduser su - hduser cat $HOME/.ssh/id_rsa.pub >...
分类:
其他好文 时间:
2014-07-08 22:57:08
阅读次数:
329
c/c++ 头文件引用问题include 引用编译器的类库路径下的头文件include “” 引用工程目录的相对路径的头文件include 是编译指令,在编译时,编译器会将相对路径替换成绝对路径,因此,头文件绝对路径=搜索路径+相对路径。Xcode Build Settings 下 Search ....
分类:
其他好文 时间:
2014-07-08 22:57:44
阅读次数:
344
题目大意:求二进制的a加到b的进位数。思路:列出前几个2进制,找规律模拟。#include #include #include #include #include #include #include using namespace std;int main(){ int a,b,id; ...
分类:
其他好文 时间:
2014-07-08 22:58:23
阅读次数:
295
问题描写叙述:当一个事件的触发不定期的时候,即我们不知道这个触发何时来到,可是我们却要对这个触发运行某些方法,怎样实现?可能的解决方式:我当时就想到了,这个问题类似与Android的部件监听(我没有去看Android的源代码,太懒了。。。)。因为如今还在研读Thinking in Java这样的入门...
分类:
其他好文 时间:
2014-07-08 22:59:00
阅读次数:
168
今天碰到一道笔试题:有两数组A、B,长度分别为m、n。用不超过m+n的比较次数找到两个数组中的相同元素。当时没做出来,我现在给出C#版本,算是弥补一点遗憾。using System;using System.Collections.Generic;using System.Linq;using Sy...
分类:
其他好文 时间:
2014-07-08 22:59:43
阅读次数:
247
1 package cn.itcast.request; 2 3 import java.io.IOException; 4 import java.io.InputStream; 5 import java.io.PrintWriter; 6 import java.lang.reflect......
分类:
其他好文 时间:
2014-07-08 23:01:02
阅读次数:
277
Tug of WarTime Limit:3000MSMemory Limit:65536KTotal Submissions:8187Accepted:2204DescriptionA tug of war is to be arranged at the local office picnic....
分类:
其他好文 时间:
2014-07-08 23:02:23
阅读次数:
268
CoCos2d-x屏幕分辨率设置 接下来是讲述CoCos2d-x对屏幕分辨率设置的问题:主要是 setFrameSize、setFrameZoomFactor 和 setDesignResolutionSize 函数的使用。1 . setFrameSize这个函数是设置移动设备屏幕分辨率,一般与se...
分类:
其他好文 时间:
2014-07-08 23:01:45
阅读次数:
257
主流的网站都是限制用户单点登录的,为什么要实现单点登录?1、避免单账号多用户操作占用大量数据库连接,减轻webserver的压力;2、安全防范,强制下线非法用户;传统的web服务器(如tomcat)对session有专门的管理,我们通过session来控制用户的登录生存周期。单点登录原理如下:1、将...
分类:
其他好文 时间:
2014-07-08 23:03:35
阅读次数:
327