单位脉冲序列的m文件:...
分类:
其他好文 时间:
2014-10-14 23:41:19
阅读次数:
308
Problem Description
A number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 24, 25, 27, ... shows the first...
分类:
其他好文 时间:
2014-10-14 23:41:13
阅读次数:
266
首先要知道,pi是对应着0.5*Fs的。模拟频率可以从负无穷到正无穷,但数字频率只能取-pi到pi,但包含着在nyquist范围外面的模拟分量。从采样的包络可以确定采样序列携带的模拟频率。...
分类:
其他好文 时间:
2014-10-15 00:31:12
阅读次数:
215
题目:HDU 1503
思路:先求出最长公共子序列,记录路径。后进行拼接。
代码#include
#include
#include
#include
#include
#include
#define mod 1000000007
using namespace std;
typedef long long LL;
int dp[110][120];
char x[100],...
分类:
其他好文 时间:
2014-10-15 00:31:08
阅读次数:
208
C# .NET Framewoke 3.0就引入的新特性,提供了扩展.NET类方法的途径,可以增加代码的美观性!
编写扩展方法有下面几个要求:
扩展方法所在的类必须是全局的,不能是内部嵌套类, 扩展方法的类必须是静态类。
扩展方法必须是静态方法。
扩展方法的第一个参数的数据类型必须是要扩展类型且使用this关键字。
扩展方法定义:
public static...
Broadcast Receiver
Android广播机制包含三个基本要素:广播(Broadcast) - 用于发送广播;广播接收器(BroadcastReceiver) - 用于接收广播;意图内容(Intent)-用于保存广播相关信息的媒介。Broadcast是一种广泛运用的在应用程序之间传输信息的机制。而BroadcastReceiver是对发送出来的Broadcast进行过滤接受...
分类:
移动开发 时间:
2014-10-14 22:50:19
阅读次数:
181
弱菜待成长...
分类:
其他好文 时间:
2014-10-15 00:46:49
阅读次数:
186
布局很简单,就一个按钮,主要看一下MainActivity吧:
package com.francis.httpget;
import android.app.Activity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuIte...
分类:
移动开发 时间:
2014-10-14 23:23:19
阅读次数:
190
1. 显示平均工资为>2000的职位
select job,avg(sal) from emp group by job having avg(sal)>2500;
2. 计算工资在2000以上,各种职位的平均工资大于3000的职位及平均工资
Select job,avg(sal) From emp where sal>2000 group by job having a...
分类:
数据库 时间:
2014-10-15 00:12:49
阅读次数:
255
Problem Description
某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统.但是这种导弹拦截系统有一个缺陷:虽然它的第一发炮弹能够到达任意的高度,但是以后每一发炮弹都不能超过前一发的高度.某天,雷达捕捉到敌国的导弹来袭.由于该系统还在试用阶段,所以只有一套系统,因此有可能不能拦截所有的导弹.
怎么办呢?多搞几套系统呗!你说说倒蛮容易,成本呢?成本是个大问题啊.所以俺就到这里来求...
分类:
其他好文 时间:
2014-10-14 22:49:19
阅读次数:
133
Debugger
V8 提供了一个强大的调试器,可以通过 TCP
协议从外部访问。Node 内建了这个调试器的客户端。要使用调试器,以 debug 参数启动
Node,出现提示符:
% node debug myscript.js
debugger listening on port 5858
connecting... ok
break in /home/indutny/Cod...
GPA
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1471 Accepted Submission(s): 902
Problem Description
In college, a student m...
分类:
其他好文 时间:
2014-10-14 22:48:59
阅读次数:
209
看了引用计数之后 那时好像懂了 今天突然想起一个问题:
Scene也是继承自Ref ,然后也是静态生成一个autorelease后的对象 那计数就变成1了 每一帧都是把autoreleasepool清空 并且调用一次release...
分类:
其他好文 时间:
2014-10-14 23:22:09
阅读次数:
213
题意:给出一个排列,其中的一些数字不小心给擦掉了。但是知道这个序列满足 i
分析:很简单很暴力,暴力填入擦掉的值,然后看有多少对元素,然后比较就好。
代码:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include ...
分类:
其他好文 时间:
2014-10-15 00:28:39
阅读次数:
172
Known Notation
Time Limit: 2 Seconds Memory Limit: 131072 KB
Do you know reverse Polish notation (RPN)? It is a known notation in the area of mathematics and computer science. It is also kn...
分类:
其他好文 时间:
2014-10-15 00:11:49
阅读次数:
297
前阵子周权出差给我带回来一个净水器,是直接安装在水龙头上的,小巧方便。我按照安装说明一步一步组装好了,感觉说明书还是比较靠谱的,没有遇到意外。但我发现它的净水、原水的按钮好像是有问题。它的结构如下图:按钮下面有PUSH字样,此时我向上一推会由净水变为原水。但是推动一下,毫无阻力感,我觉得有些蹊跷。当放水时,无论是显示原水还是净水,都是从原水出水口出来,根本就不走过滤盒。我将此事反映给权哥,他说也许...
分类:
其他好文 时间:
2014-10-14 23:38:19
阅读次数:
243
Given a collection of intervals, merge all overlapping intervals.
For example,
Given [1,3],[2,6],[8,10],[15,18],
return [1,6],[8,10],[15,18].
参照insert intervals
/**
* Definition for an interva...
分类:
其他好文 时间:
2014-10-14 22:48:09
阅读次数:
125