码迷,mamicode.com
首页 > 2014年07月30日 > 全部分享
HDOJ 4893 Wow! Such Sequence!
Wow! Such Sequence! Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1265    Accepted Submission(s): 387 Problem Description Recent...
分类:其他好文   时间:2014-07-30 12:25:23    阅读次数:273
鼠标位置追踪
实现方法 响应WM_MOUSEMOVE消息,在其响应函数中获得鼠标位置。 程序代码 (1)通过AppWizard生成基于对话框的应用程序TrailMousePos。 (2)给对话框增加两个编辑框,ID 分别为IDC_X 和IDC_Y,并生成对应的CString类型的变量 m_strX和m_strY。 (3)通过ClassWizard响应WM_MOUSEMOVE消息,处理鼠标移动消息,其...
分类:其他好文   时间:2014-07-30 12:25:03    阅读次数:229
JavaLearning:日期操作类
package org.fun.classdemo; import java.util.Calendar; import java.util.GregorianCalendar; public class DateTime { private Calendar calendar = new GregorianCalendar(); // 实例化Calendar对象 public Stri...
分类:编程语言   时间:2014-07-30 12:24:53    阅读次数:223
java ThreadLocal解读
Thread.java源码中: ThreadLocal.ThreadLocalMap threadLocals = null;即:每个Thread对象都有一个ThreadLocal.ThreadLocalMap成员变量,ThreadLocal.ThreadLocalMap是一个ThreadLocal类的静态内部类(如下所示),所以Thread类可以进行引用. static class Th...
分类:编程语言   时间:2014-07-30 12:24:43    阅读次数:200
linux高级技巧:heartbeat+lvs(二)
上一个帖子介绍了heartbeat的单独使用,今天我们首先来介绍lvs的单独使用,最后将两者结合 起来。提供一个全面的服务。 1.LVS的三种负载均衡技术:            非常幸运的是kernel 2.6x 已经内建了LVS模块,而且在redhat6版本中也有LVS的安装包ipvsadm。                 下面我们对LVS的三种负载均衡技术进行比较: ...
分类:系统相关   时间:2014-07-30 12:24:23    阅读次数:264
ZOJ 4257 Most Powerful
Description Recently, researchers on Mars have discovered N powerful atoms. All of them are different. These atoms have some properties. When two of these atoms collide, one of them disappears and ...
分类:其他好文   时间:2014-07-30 12:24:13    阅读次数:226
int 类型的数值一次性写入一次性读取
将一个20M 的int数值一次性保持,并一次性读取,避免保存为char 类型,进行格式转换的时候很耗时。 #include #include #include using namespace std; #define MAXNUM 2560*1920 void savedata(char *filename,int *pdata) { ofstream out; out....
分类:其他好文   时间:2014-07-30 12:24:03    阅读次数:163
POJ 1159 Palindrome(lcs加滚动数组)
lcs算法 加 滚动数组 注释详...
分类:其他好文   时间:2014-07-30 12:23:53    阅读次数:269
POJ2492 A Bug's Life (并查集)
本文出自:http://blog.csdn.net/svitter 题意: 给出昆虫编号,看昆虫能否交配,如果出现同性交配或者自我交配的情况,则出现BUG。 输入输出分析: 1.输入输出数据: input: 2 3 3 1 2 2 3 1 3 4 2 1 2 3 4 output: Scenario #1: Suspicious bugs found! Sce...
分类:其他好文   时间:2014-07-30 12:23:43    阅读次数:231
怒刷30道线段树、树状数组
HDU 1754 单点更新,区间查询最大值,水题…… #include #include #include #include #include #include #include #include #include #define mem(a,b) memset(a,b,sizeof(a)) #define lson i<<1,l,mid #define rson i<<1|1,mid+1,r...
分类:其他好文   时间:2014-07-30 12:23:33    阅读次数:252
HDU - 2276 Kiki & Little Kiki 2
Description There are n lights in a circle numbered from 1 to n. The left of light 1 is light n, and the left of light k (1< k<= n) is the light k-1.At time of 0, some of them turn on, and others t...
分类:其他好文   时间:2014-07-30 12:23:23    阅读次数:199
poj 1088 滑雪
记忆化搜索。。 对每个点能走的最远进行记录,如果走过,直接返回上一层。。 最后遍历找出最大值。。 #include #include #include #include using namespace std; struct node{ int q,w; }s[104][105]; int a,b; int yy[105][105]; int map[4][2]={1,0,-1,0,0,...
分类:其他好文   时间:2014-07-30 12:23:03    阅读次数:179
unity与ios交互
unity和ios交互就更为简单了,直接导出xcode工程,这个大家都知道怎么操作的吧,二次开发的话需要ios代码集成到unity,其实集成很简单找到导出的xcode工程里的iPhone_View.mm中的OnUnityReady()方法,unity也相当于ios中一个view,[GetAppController() showGameUI:_mainDisplay->window];加载游戏视图...
分类:移动开发   时间:2014-07-30 12:22:43    阅读次数:279
Ultra-QuickSort(树状数组 + 离散化)
Description In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjacent sequence elements until the seq...
分类:其他好文   时间:2014-07-30 12:22:33    阅读次数:290
HDU 4886 TIANKENG’s restaurant(Ⅱ) hash+dfs
题意: 1、找一个字符串s使得 s不是给定母串的子串 2、且s要最短 3、s在最短情况下字典序最小 hash,,,结果t掉了。。。然后加了个姿势怪异的hash值剪枝才过。。 队友是屌啊,,随手改了一下,特么我都不知道为毛过了 #include #include #include #include #include #include #include #include #...
分类:其他好文   时间:2014-07-30 12:22:23    阅读次数:295
Tyvj P1233 数列
描述 Description 虽然msh长大了,但她还是很喜欢找点游戏自娱自乐。有一天,她在纸上写了一串数字:1,1,2,5,4。接着她擦掉了一个1,结果发现剩下1,2,4都在自己所在的位置上,即1在第1位,2在第2位,4在第4位。她希望擦掉某些数后,剩下的数列中在自己位置上的数尽量多。她发现这个游戏很好玩,于是开始乐此不疲地玩起来……不过她不能确定最多能有多少个数在自己的位置上,所以找到你,请...
分类:其他好文   时间:2014-07-30 12:22:14    阅读次数:262
placeholder和json两种实现登录隐藏的方法
placeholder和json两种实现登录隐藏的方法,当浏览器不支持placeholder时,可以用json来实现登录用户名密码的隐藏...
分类:Web程序   时间:2014-07-30 12:22:03    阅读次数:176
1835条   上一页 1 ... 56 57 58 59 60 61 62 ... 108 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!