代码如下: public void sendMessage(String number) { if (TextUtils.isEmpty(number)) { return; } Intent intent = new Inten...
分类:
移动开发 时间:
2014-08-27 16:03:27
阅读次数:
950
http://acm.hdu.edu.cn/showproblem.php?pid=3709
平衡数。枚举支点的位置,同时记录力臂。
dp[i][j][k]表示当前处理到第i个数,支点的位置是j,当前的力臂是k。因此判断某个数是否是平衡数,只需判断递归终点时力臂是否为0。
#include
#include
#include
#include
#include
#i...
分类:
其他好文 时间:
2014-08-27 14:48:47
阅读次数:
180
Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the cod...
分类:
其他好文 时间:
2014-08-27 14:45:48
阅读次数:
236
为了更加深入左外连接,我们做一些测试,外连接的写法有几种形式,我们可以通过10053跟踪到最终SQL转换的形式。
--初始化数据
create table A
(
id number,
age number
);
create table b
(
id number,
age number
);
insert into A values(1,10);
in...
分类:
数据库 时间:
2014-08-27 14:43:18
阅读次数:
250
Number SequenceTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10239Accepted Submission(s): 4656P...
分类:
其他好文 时间:
2014-08-27 14:22:47
阅读次数:
184
---- 创建项目
DECLARE
l_orig_project_id NUMBER := 6;
l_prj_num VARCHAR2(240) := 'CXYTEST001';
l_start_date DATE := SYSDATE;
l_completion...
分类:
其他好文 时间:
2014-08-27 13:00:07
阅读次数:
415
-- 创建资源
DECLARE
p_project_id NUMBER := 155233;
p_task_id NUMBER := 244639;
p_resource_list_member_id NUMBER := 2023;
p_planned_quantity NUMBER := 10...
分类:
其他好文 时间:
2014-08-27 12:59:57
阅读次数:
297
---- 项目关联项目经理
DECLARE
p_project_id NUMBER := 155233;
l_project_role_id NUMBER := '';
p_employee_id NUMBER := 10994;
p_effective_date DATE := SYSDATE - 1;
l_end_date_a...
分类:
其他好文 时间:
2014-08-27 12:59:47
阅读次数:
323
---- 创建任务
DECLARE
p_project_id NUMBER := 155233;
p_task_number VARCHAR2(240) := 'CXYTEST0001';
p_task_name VARCHAR2(240) := '接口测试CXYTEST0001';
p_task_d...
分类:
其他好文 时间:
2014-08-27 12:59:37
阅读次数:
330
function idcard_verify_number($idcard_base){if (strlen($idcard_base) != 17){return false;}$factor = array(7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, ...
分类:
Web程序 时间:
2014-08-27 12:49:07
阅读次数:
190