首页 > 其他
hdu 2870 Largest Submatrix(hdu 1505的加强版)
1.ans=max(全为a的最大矩阵,全为b的最大矩阵,全为c的最大矩阵) 2.代码: #include #include #include using namespace std; const int INF=1<<30; char mat[1005][1005]; int a[1005][1005]; int b[1005][1005]; int c[1005][1005]; int L...
分类:其他   时间:2015-05-12 09:28:01    收藏:0  评论:0  赞:0  阅读:221
我不想2
我不想搞那些复杂的东西。 我只想专注于技术,但在中国这个社会,仅仅懂技术想活下去,真他妈的难。 总之,我想专注于技术,我想做一个有实力的人。我认为,自力更生才光荣。 自己有真正的实力生活,回到家也踏实。不偷别人的,不抢别人的,不投机倒把,靠真本事挣口饭吃,没什么比这更好了。 我不想有什么大的成绩,自力更生就行了。走形式的事浪费时间的事,我懒得理会。 我从小就讨厌走形式,讨...
分类:其他   时间:2015-05-12 09:27:51    收藏:0  评论:0  赞:0  阅读:241
cookie的简单使用(1)
cookie是http协议头的组成部分,必须在页面的其他内容出现之前发送。所以在设置cookie之前不能有任何文本输出,包括HTML标记、输出语句以及空白行。 一旦cookie被建立,那么下一次访问页面时,cookie就会通过_COOKIE或HTTP_COOKIE_VARS数组加载。 函数setcookie的作用是用来发送一个cookie。它的用法如下: bool setcookie...
分类:其他   时间:2015-05-12 09:27:31    收藏:0  评论:0  赞:0  阅读:197
struts学习之struts配置文件详解
在struts中如果使用到其他拦截器,一定要放在核心拦截器之前,否则不起作用。   在struts中可以使用servlet。 xml version="1.0"encoding="UTF-8" ?> DOCTYPE struts PUBLIC          "-//Apache Software Foundation//DTD StrutsConfiguration 2...
分类:其他   时间:2015-05-12 09:27:12    收藏:0  评论:0  赞:0  阅读:201
codeforce198B 最短路
//对于该点能到达的下一点用一条路径表示 //然后用spfa求出其最小值 //在更新最小点时判断一下他去这一个点时会不会淹死 #include #include #include #include using namespace std ; const int inf = 0x3f3f3f3f; const int maxn = 100010 ; const int mod =...
分类:其他   时间:2015-05-12 09:27:01    收藏:0  评论:0  赞:0  阅读:170
106 浏览器判断 IE firefox chrome safari opara
//浏览器检测 (function(){     window.sys={};     var ua=navigator.userAgent.toLowerCase();//获取炉冷却信息字符串     var s;//浏览器信息数组,浏览器名称+版本号     //document.write(ua);//不同浏览器将输出一下浏览器信息    /*     document.wri...
分类:其他   时间:2015-05-12 09:26:51    收藏:0  评论:0  赞:0  阅读:271
顺序队列的实现
顺序队列的实现,写出给大家分享一下,我不习惯写什么心得,直接贴代码出来供大家分享,共同进步。 1:头文件:Queue.h #pragma once #include #include #define ElemType int #define SizeFull 20 typedef struct Queue { ElemType *data; int sizefull; int fro...
分类:其他   时间:2015-05-12 09:26:12    收藏:0  评论:0  赞:0  阅读:178
HDU 5078 Osu!
题目链接:hdu 5078 Osu! 题面: Osu! Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 1058    Accepted Submission(s): 550 Special Judg...
分类:其他   时间:2015-05-12 09:26:02    收藏:0  评论:0  赞:0  阅读:365
LeetCode 190 :Reverse Bits
Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as 001110010...
分类:其他   时间:2015-05-12 09:25:47    收藏:0  评论:0  赞:0  阅读:265
uva_11374_Airport Express(最短路+枚举)
Airport Express In a small city called Iokh, a train service, Airport-Express, takes residents to the airport more quickly than other transports. There are two types of trains in Airport-Express, t...
分类:其他   时间:2015-05-12 09:25:17    收藏:0  评论:0  赞:0  阅读:228
POJ -3253 优先队列 STL
Fence Repair Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 29658   Accepted: 9643 Description Farmer John wants to repair a small length of the fence aroun...
分类:其他   时间:2015-05-12 09:24:56    收藏:0  评论:0  赞:0  阅读:253
弹幕效果
简单弹幕实现...
分类:其他   时间:2015-05-12 09:24:45    收藏:0  评论:0  赞:0  阅读:188
解题报告 之 POJ2891 Strange Way to Express Integers
POJ2891 ,Strange Way to Express Integers,线性同余方程组,数论 Elina is reading a book written by Rujia Liu, which introduces a strange way to express non-negative integers. The way is described as following: Choose k different positive integers a1, a2, …, ak. For so...
分类:其他   时间:2015-05-12 09:24:41    收藏:0  评论:0  赞:0  阅读:182
POJ - 1703 - Find them, Catch them (并查集)
题目传送:Find them, Catch them 思路:用一个关系数组记录当前结点与其父亲的关系,0表示同类,1表示不同类 AC代码: #include #include #include #include #include #include #include #include #include #include #include #include ...
分类:其他   时间:2015-05-12 09:24:29    收藏:0  评论:0  赞:0  阅读:129
HDU ACM 4255 A Famous Grid
A Famous Grid Time Limit: 10000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1562    Accepted Submission(s): 603 Problem Description Mr. B has recent...
分类:其他   时间:2015-05-12 09:24:20    收藏:0  评论:0  赞:0  阅读:258
LA 4945 Free Goodies(贪心)
题意:n个糖果,两个人 Petra,Jan,每个糖果对于这两个人都有一定的val值,Petra每次选对于自己val值最大的那个,如果一样,就选Jan的val值小的,Jan想让自己选的糖果的val值之和最大,如果有多种路径,那么就选使Petra最后的val最大的那种(真是好基友,好丽友。。 = =),告诉你先手,轮着来。问你最后他们两个的分别得val值之和。 思路:贪心。先按照Petra的顺序两人逐个选取,就会得到两组,一组是Petra的,一组是Jan的,然后再倒着来,对于每个Jan选取的糖果,对于当前点再...
分类:其他   时间:2015-05-12 09:23:32    收藏:0  评论:0  赞:0  阅读:217
【BZOJ 4010】 [HNOI2015]菜肴制作
易错的思路题+topsort~...
分类:其他   时间:2015-05-12 09:22:41    收藏:0  评论:0  赞:0  阅读:231
【BZOJ 4011】 [HNOI2015]落忆枫音
树形图+dp~...
分类:其他   时间:2015-05-12 09:22:32    收藏:0  评论:0  赞:0  阅读:253
【BZOJ 2527】 [Poi2011]Meteors
整体二分~...
分类:其他   时间:2015-05-12 09:22:22    收藏:0  评论:0  赞:0  阅读:266
【BZOJ 2738】 矩阵乘法
思路题+整体二分~...
分类:其他   时间:2015-05-12 09:22:16    收藏:0  评论:0  赞:0  阅读:319
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!