HDU3466:Proud Merchants(01背包)
Problem Description Recently, iSea went to an ancient country. For such a long time, it was the most wealthy and powerful kingdom in the world. As a result, the people in this country are still very...
View Articlepoj 2406 kmp
#include <iostream> #include <cstdio> #include <cstring> using namespace std; const int maxn=1e6+9; int next[maxn]; char a[maxn]; int main() { while(1) { memset(a,0,sizeof(a));...
View Articlepoj 2752 Seek the Name, Seek the Fame
#include <iostream> #include <cstdio> #include <cstring> using namespace std; const int maxn=1e6+9; int next[maxn],ans[maxn]; char a[maxn]; int main() { while(scanf("%s",a+1)!=EOF) {...
View Article记录一次iis发布的经历报错,默认画面不起作用
客户服务器环境:ibm服务器,windows2003企业版 内存32G,ii6. 发布目标:SliverLight程序,一个等值面图后台windows服务器。 安装过程: 第一步:安装了.net2.0,.net3.5sp1(arcgis需要),.net4.0(程序需要) 第二部: 安装widows服务失败 没有显出具体的错误原因安装服务用的是installutil.exe。...
View ArticleMYSQL分享:获取存取过程完整定义语句
SELECT db,specific_name AS OBJECT_NAME , CONCAT( CHAR(13), CHAR(10), 'DELIMITER $$', CHAR(13), CHAR(10), CHAR(13), CHAR(10), 'USE `', db, '`$$', CHAR(13), CHAR(10), CHAR(13), CHAR(10), 'DROP PROCEDURE...
View Article深入理解Oracle索引(19):表被 delete 后、索引叶子块里 entry 条目的状态
先瞧一个大家习以为常的现象:hr@ORCL> drop table t purge; Table dropped. hr@ORCL> create table t (x number,y varchar2(30)); Table created. hr@ORCL> insert into t select rownum,rownum||'a' from dual...
View Article11072 - Points
#include<iostream> #include<algorithm> using namespace std; struct point {double x;double y; point(double x=0, double y=0):x(x),y(y){} }p[100005],a,ch[100005]; typedef point vector; vector...
View ArticleA06_RelativeLayout_logIn_仿QQ登录界面设置
使用RelativeLayout设置仿QQ登陆界面 模拟器android4.2系统效果图: 真机Android2.3.7显示效果: Xml布局文件: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"...
View ArticleHDOJ/HDU 1728 逃离迷宫 DFS 深度优先搜素
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1728 深搜思路:记录4个方向和拐弯次数,若拐弯3次,则必须是当前点和终点在一条直线才满足要求,否则剪掉,这样也超时,坑爹,之前连连看那个题就是用这种方法也能过,不知道这次为啥过不了,下次再优化。 代码: #include <iostream> #include <cmath>...
View ArticleAndroid启动器(Launcher)开发详解
第1章 Launcher的诞生 1.1 Framework启动Launcher流程 1.2 Launcher自身启动流程 App-Launcher-数据加载和UI绑定 目录 [隐藏] 1 1.Launcher桌面数据和主菜单数据加载流程 1.1 1.1 加载主菜单数据 1.1.1 1.加载调用流程 1.2 1.2 加载桌面数据1.3 1.3...
View Article大学四年,我学到了什么(二)
昨天晚上,突然之间,想把这个系列文章再加一篇。上一篇要追溯到去年10月30日,差不多大概八个月时间。不得不感慨,时间的流逝。简单总结下这八个月,没有更改自己的选择,去了北京培训了三个月,进了日企,办了护照,伺机着出国,变海龟。...
View Articlejava学习笔记15--引用传递
范例一 class Demo{ public int temp = 30; } public class T { public static void main(String[] args) { // TODO Auto-generated method stub Demo d1 = new Demo(); d1.temp = 50;...
View Article用paint方法插入图片
如何在窗口上添加图片呢,首先想到的是要得到这个图片,所以可以用imageicon里面的getimage方法来得到图片。 然后就在画布上用drawimage把它画出来即可。 需要注意的是,重写的paint方法中要调用父类的paint方法。详细原因在之前的画图板的博客里有总结过。...
View Article【C++基本功补习】定时器使用及文件路径提取
1,定时器的使用 SetTimer(1, 1000, NULL); //启动定时器1, 定时1000毫秒, 使用默认的处理函数 OnTimer() KillTimer(1); //关闭定时器1 处理函数的实现 void CMFCView::OnTimer(UINT_PTR nIDEvent) // CMFCView 这个可以根据项目需要变更的,它只是表明一个归属 { //...
View ArticleWCF学习笔记-枚举类型
版权所有,转载请注明出处:http://guangboo.org/2013/06/06/wcf-enumeration-contract 枚举类型在WCF中默认是可以被序列化的,而不需要显式的使用DataContractAttribute来修饰。因此如下代码是可以正常运行的: enum ContactType { Customer, Vendor, Partner }...
View Articleoracle 11g PL/SQL Programming学习九
---------------------------------------------------------------------------- -----------------PL/SQL学习笔记系列 By Cryking----------------- ------------------------转载请注明出处,谢谢!------------------------...
View ArticleC++编程,求你自己活了多少天
/*C++编程,求你自己活了多少天*/ #include<iostream> using namespace std; int main(){ int y1,y2,m1,m2,d1,d2; int panduan(int y,int m,int d); double total=0; cout<<"please input your birthday:";...
View Articlephp实战第十八天
今天确实没写一行php代码..学习ps做了一下渐变效果的图片,但是挺难看的噢.... PS 新建 设置要的像素什么的,然后 渐变工具选择好恰到好处的颜色,然后 一鼠标划过渐变就出来了,然后就用css的background-image加载进去咯. 作者:wlqf366 发表于2013-6-7 0:57:02 原文链接 阅读:113 评论:0 查看评论
View ArticleAndroid开发(13)-- 互联网访问图片,在android客户端显示
1、布局界面 [html] view plaincopyprint? <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"...
View Article