gavanwanggw

导航

2017年5月21日 #

ural 1005 Stone Pile

摘要: 这是道01背包题 ,尽管背包不会 ,可是还是看出来了,递推公式写啊写没写出来,后来一同学说是dfs。这我就開始了A了, 题意是给你n个重量是Wn的石头 让你放到两个包里面。看他们两个差值最小,而且输出这个差值。 dfs代码 #include <stdio.h> int sum; int h,T; i 阅读全文

posted @ 2017-05-21 20:51 gavanwanggw 阅读(218) 评论(0) 推荐(0) 编辑

Android ListView 的优化

摘要: 一、复用convertView,降低findViewById的次数 1、优化一:复用convertView Android系统本身为我们考虑了ListView的优化问题。在复写的Adapter的类中,比較重要的两个方法是getCount()和getView()。界面上有多少个条显示。就会调用多少次的 阅读全文

posted @ 2017-05-21 19:58 gavanwanggw 阅读(131) 评论(0) 推荐(0) 编辑

solaris x86安装ORACLE 11.2.0.3软件时因SWAP不足报错: INFO: ld: fatal: mmap anon failed

摘要: 1.ORACLE软件安装到86%时报错,图忘截了。日志例如以下: /oracle/u01/app/oracle/product/11.2.0/ INFO: db_1/lib/sysliblist` -R /opt/SUNWcluster/lib -R/export/home/oracle/u01/a 阅读全文

posted @ 2017-05-21 19:23 gavanwanggw 阅读(178) 评论(0) 推荐(0) 编辑

Intent 使用方法全面总结

摘要: 调用拨号程序 // 给移动客服10086拨打电话 Uri uri = Uri.parse("tel:10086"); Intent intent = new Intent(Intent.ACTION_DIAL, uri); startActivity(intent); 发送短信或彩信 // 给100 阅读全文

posted @ 2017-05-21 18:32 gavanwanggw 阅读(266) 评论(0) 推荐(0) 编辑

Linux以GB显示内存大小

摘要: Linux以GB显示内存大小 youhaidong@youhaidong-ThinkPad-Edge-E545:~$ free -g total used free shared buffers cached Mem: 2 1 1 0 0 0 -/+ buffers/cache: 0 2 Swap: 阅读全文

posted @ 2017-05-21 17:19 gavanwanggw 阅读(3652) 评论(0) 推荐(0) 编辑

Python中的tuple

摘要: tuple是一种有序的集合:元组。和list类似,不同的是,tuple一旦创建就不能再改动了。 一、创建tuple 1、创建tuple用()来表示 2、创建空tuple: 3、创建单元素tuple:须要在元素后加逗号 4、创建“可变”tuple 用list来表示tuple中的当中一个元素,改动lis 阅读全文

posted @ 2017-05-21 16:06 gavanwanggw 阅读(158) 评论(0) 推荐(0) 编辑

Create and Call HttpHandler in SharePoint

摘要: Create and Call HttpHandler in SharePoint Requirement: 1. Create a httphandler, and reture json data when call the httphandler in client. 2. Create a 阅读全文

posted @ 2017-05-21 15:16 gavanwanggw 阅读(180) 评论(0) 推荐(0) 编辑

各种数据库(oracle、mysql、sqlserver等)在Spring中数据源的配置和JDBC驱动包

摘要: 各种数据库(oracle、mysql、sqlserver等)在Spring中数据源的配置和JDBC驱动包 在开发基于数据库的应用系统时。须要在项目中进行数据源的配置来为数据 库的操作取得数据库连接。配置不同数据库的数据源的方法大体上都是同样的。不同的仅仅是不同数据库的JDBC驱动类和连接URL以及对 阅读全文

posted @ 2017-05-21 13:39 gavanwanggw 阅读(168) 评论(0) 推荐(0) 编辑

BNU 34986 Football on Table

摘要: "Bored? Let's play table football!" The table football is played on a rectangular table, usually contains m rows of players which are plastic, metal, 阅读全文

posted @ 2017-05-21 12:35 gavanwanggw 阅读(272) 评论(0) 推荐(0) 编辑

Effective JavaScript Item 31 优先使用Object.getPrototypeOf,而不是__proto__

摘要: 本系列作为Effective JavaScript的读书笔记。 在ES5中引入了Object.getPrototypeOf作为获取对象原型对象的标准API。可是在非常多运行环境中。也提供了一个特殊的__proto__属性来达到相同的目的。 由于并非全部的环境都提供了这个__proto__属性,且每一 阅读全文

posted @ 2017-05-21 11:01 gavanwanggw 阅读(144) 评论(0) 推荐(0) 编辑

POJ 3080 Blue Jeans (后缀数组)

摘要: 题目大意: 求出这些DNA序列中的最长且字典序最小的公共子串。 思路分析: 二分长度的答案,去height中扫描这个长度是否满足,一旦满足就立即输出。这样就能够保证字典序最小了。 #include <cstdio> #include <iostream> #include <cstring> #in 阅读全文

posted @ 2017-05-21 10:05 gavanwanggw 阅读(138) 评论(0) 推荐(0) 编辑

HDU 2586 How far away ?(LCA模板 近期公共祖先啊)

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2586 Problem Description There are n houses in the village and some bidirectional roads connecting them 阅读全文

posted @ 2017-05-21 09:07 gavanwanggw 阅读(194) 评论(0) 推荐(0) 编辑

自己主动化的在程序中显示SVN版本号

摘要: 有时候会有这种情况,策划拿着应用过来提一个bug,但我们却不好确定策划的手机上装的应用相应的是那个代码版本号。 为了解决问题。我们希望能在应用上显示出当前应用所相应的代码版本号,即svn版本号。 构想了下,希望最后达到的效果有: 自己主动化,不须要每次编译版本号的时候有人为的步骤,比方编版本号的时候 阅读全文

posted @ 2017-05-21 08:18 gavanwanggw 阅读(1277) 评论(0) 推荐(0) 编辑