A题:给出一个坐标(a,b),和走的步数,问有没有可能从(0,0)走这么多步刚好到达(a,b).水题,结果还是wa了一次,没有考虑到a 2 int main() 3 { 4 int a,b,s; 5 while(scanf("%d%d%d",&a,&b,&s)!=EOF){ 6 ...
分类:
其他 时间:
2015-03-18 01:07:09
收藏:
0 评论:
0 赞:
0 阅读:
323
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:
其他 时间:
2015-03-18 01:06:59
收藏:
0 评论:
0 赞:
0 阅读:
291
Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog...
分类:
其他 时间:
2015-03-18 01:06:49
收藏:
0 评论:
0 赞:
0 阅读:
287
Tuple(组元)是C# 4.0引入的一个新特性,编写的时候需要基于.NET Framework 4.0或者更高版本。在以前编程中,当需要返回多个值得方法中,常常需要将这些值放置到一个结构体或者对象中进行返回,当然也有以out/ref参数进行传递的。但是总的来说并不能真正的符合编程的需要。从而引入T...
分类:
其他 时间:
2015-03-18 01:06:19
收藏:
0 评论:
0 赞:
0 阅读:
358
题意:给出正整数k,找到所有整数使得满足1/k=1/x+1/y根据基本不等式可以求出k 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #defi...
分类:
其他 时间:
2015-03-18 01:06:09
收藏:
0 评论:
0 赞:
0 阅读:
242
今天遇到一个逻辑很复杂的SQL,虽然写出来了,但是并没有完全体会,找了找资料,算是摸清楚了left join和inner join 的实际意义。感谢PCJIM的文章,写的非常明白,原文地址:http://www.cnblogs.com/pcjim/articles/799302.html。实际上,j...
分类:
其他 时间:
2015-03-18 01:05:49
收藏:
0 评论:
0 赞:
0 阅读:
248
public static String encodeUrl(String source){ String result = source; try{ result = java.net.URLEncoder.encode(source,"utf-8...
分类:
其他 时间:
2015-03-18 01:05:29
收藏:
0 评论:
0 赞:
0 阅读:
230
该题目和求两个字符串的最长公共子串,有相似之处。关键是求得动态规划方程。即f(m,n)= MIN(f(m-1,n-1),f(m-1,n),f(m,n-1)) + 1;f(m,n)表示长度为m的字符串转换为长度为n的字符串所需的最少步骤。f(m,n)递推是通过和最后一个字符串的比较递推得到。存在一个定...
分类:
其他 时间:
2015-03-18 01:05:19
收藏:
0 评论:
0 赞:
0 阅读:
281
题目链接:http://poj.org/problem?id=3264For the daily milking, Farmer John'sNcows (1 ≤N≤ 50,000) always line up in the same order. One day Farmer John deci...
分类:
其他 时间:
2015-03-18 01:05:09
收藏:
0 评论:
0 赞:
0 阅读:
283
原题地址这道题巧妙地利用了先前回文串的信息来减少后面的回文串计算量。比如下面的字符串(圆圈代表字符)假设已经知道了某个字符的回文串情况(曲线连接的两个圆圈代表两个相同字符)思考:这能给后面的回文串计算带来什么帮助呢?一个巴掌拍不响,看看已知两个回文串有什么效果:是不是有点意思了?为了更加直观,我们给...
分类:
其他 时间:
2015-03-18 01:04:49
收藏:
0 评论:
0 赞:
0 阅读:
266
海康威视 网络 远程 摄像机 监控
分类:
其他 时间:
2015-03-18 01:04:39
收藏:
0 评论:
0 赞:
0 阅读:
1527
最近项目中要求获取时时的cpu动态图,利用 highchart 可以轻松实现该功能,效果可在此地址查看:动态效果代码如下:页面 js 引用: 创建一个div :javascript 代码:$(function () { var k=0; $(document).r...
分类:
其他 时间:
2015-03-18 01:02:59
收藏:
0 评论:
0 赞:
0 阅读:
316
题意:给出n个数组成的序列,求乘积最大的连续子序列看的紫书,因为n最大为18,每个数最大为10,所以10^18用long long 能够存下, 直接枚举起点和终点找最大值就可以了 1 #include 2 #include 3 #include 4 #include 5 #includ...
分类:
其他 时间:
2015-03-18 01:02:29
收藏:
0 评论:
0 赞:
0 阅读:
308
中了一个坑,循环时竟然从该物品的价格和分数开始,中招了,因为就算价格高于钱数,可能分数符合呢????所以要从零开始。#include #include #include #include #include using namespace std;int dp[102][102][102][7];in...
分类:
其他 时间:
2015-03-18 01:02:09
收藏:
0 评论:
0 赞:
0 阅读:
279
1、TCP/IP HTTP协议(1)TCP报文头格式(2)TCP连接的建立与终止,三次握手、四次挥手(3)TCP的状态转移图2、UNIX网络编程(1)并发服务器,多进程、多线程编程3、数据库(1)MySQL4、服务器(1)nginx(2)Apache(3)IIS5、脚本语言(1)shell(2)P....
分类:
其他 时间:
2015-03-18 01:01:59
收藏:
0 评论:
0 赞:
0 阅读:
228
log 这个事, 说大不大说小又不小. 大点的, 可以用scribe flume 这样的系统去做, 小点的, 也就打印一个调试信息而已. 在Erlang 中, log 这事情确实比较伤, error_logger 是个单点, io:format 容易导致节点崩溃. 在开源社区, lager 算是使用...
分类:
其他 时间:
2015-03-18 01:00:59
收藏:
0 评论:
0 赞:
0 阅读:
458
http://acm.hdu.edu.cn/showproblem.php?pid=1160#include #include #include #include #include using namespace std;struct Node{ int w,s,id,fa;};Node mi...
分类:
其他 时间:
2015-03-18 01:00:49
收藏:
0 评论:
0 赞:
0 阅读:
316
如题就是Scrollbar控件,它简单可以看成 Scrollbar 和 Image组件组成 它基本上不单独使用多数是制作滚动视图.我们来看看他独特的属性,重复的属性就不在介绍了! 属性讲解: Handle Rect: 表示滚动条的把手, 如果你有一个Image物体,虽然让它来成为滚动条的把手. 你只...
分类:
其他 时间:
2015-03-18 01:00:29
收藏:
0 评论:
0 赞:
0 阅读:
370
本题的误区是用位运算法,位运算法基数太大暴力枚举肯定超时。。。#include using namespace std;int Count(int n){int ans = 0;while(n){ans += n & 1;// n 与 1,判断第一位是0还是1 n >>= 1;// 向右移1位 ,相...
分类:
其他 时间:
2015-03-18 01:00:09
收藏:
0 评论:
0 赞:
0 阅读:
391
蓝桥杯 算法训练 操作格子
分类:
其他 时间:
2015-03-18 00:58:49
收藏:
0 评论:
0 赞:
0 阅读:
460