题目链接:click here~~
【题目大意】:
Now, here is a fuction: F(x) = 6 * x^7+8*x^6+7*x^3+5*x^2-y*x (0
【解题思路】:
首先,对该式子,求一阶导,得到F'(x) = 42*x^6 + 48*x^5+21*x^2+10*x-y,这里,我们忽略y,可发现,导函数42*x^6 + 48*x^5+21*x^2+10...
分类:
其他好文 时间:
2015-06-02 20:10:35
阅读次数:
106
Problem Description
How many nondecreasing subsequences can you find in the sequence S = {s1, s2, s3, ...., sn} ? For example, we assume that S = {1, 2, 3}, and you can find seven nondecreasing sub...
分类:
其他好文 时间:
2015-06-02 20:11:09
阅读次数:
169
因为要学习ffmpeg,顺面研究了一下avi容器,好了解ffmpeg怎么在容器中读取数据流的。
AVI(Audio Video Interleaved的缩写)是一种RIFF(Resource Interchange File Format的缩写)文件格式,多用于音视频捕捉、编辑、回放等应用程序中。通常情况下,一个AVI文件可以包含多个不同类型的媒体流(典型的...
分类:
其他好文 时间:
2015-06-02 20:09:09
阅读次数:
177
分析:并查集实现最小生成树。不能用cin和cout(使用了ios::sync_with_stdio(false);都不行),否则TLE。
#include
#include
#include
using namespace std;
#define N 1005
int father[N*N];
struct EDGE
{
int u,v;
int len;
bool operator...
分类:
其他好文 时间:
2015-06-02 20:11:10
阅读次数:
575
class Solution {private: vector res; string temp;public: void getRes(string digits,int len,map num_map,int index) { if(index>=len) ...
分类:
其他好文 时间:
2015-06-02 20:08:52
阅读次数:
105
【socket.gethostname() vs socket.getfqdn()】 gethostname()把域名转换为IP。
分类:
其他好文 时间:
2015-06-02 20:07:55
阅读次数:
126
https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1432#include int main () { int a, b, c; while (s...
分类:
其他好文 时间:
2015-06-02 20:07:12
阅读次数:
125
文档背景: 为了提高从事学生工作的老师的工作效率,我们开发了这个大学学籍管理系统。 这个系统能满足用户Login/Logout,管理员账户与普通账户,管理员可以添加,修改删除,普通账户只能查看。主要功能:能完成新学生的添加、修改、删除,能按学生成绩求和,排名,列出不及格学生的名单等。操作简单、界面....
分类:
其他好文 时间:
2015-06-02 20:08:40
阅读次数:
248
首先要序列化的对象必须实现Serializable接口,序列化和反序列化实现代码如下:ByteUtils.javapackage com.zqgame.rabbitmq;import java.io.ByteArrayInputStream;import java.io.ByteArrayOutpu...
分类:
其他好文 时间:
2015-06-02 20:07:30
阅读次数:
103
一、基于TCP(面向连接)的socket编程服务器端程序:1、创建套接字(socket)。2、将套接字绑定到一个本地地址和端口上(bind)。3、将套接字设为监听模式,准备接受客户请求(listen)。4、等待客户请求到来;当请求到来后,接受连接请求,返回一个新的对应于此次连接的套接字(accept...
分类:
其他好文 时间:
2015-06-02 20:06:47
阅读次数:
103
233333...Description:就是说呢。牛是的实力室友大小之分的。然后呢。告诉你很多pair 表示任意两头牛之间的实力大小。按实力排序之后。问你一共有多少只牛的排名是确定了的。T_T == 坑了好多WA....应该是 =好吧。。貌似是拓扑排序的floyd算法。。数据太小。。三重循环水过、...
分类:
其他好文 时间:
2015-06-02 20:07:12
阅读次数:
99
1.使用jfinal扩展包jfinal-ext-3.1.2.jar导出Excel报表,他需要依赖poi-3.12.jarjai包下载地址:http://files.cnblogs.com/files/zhougaojun/jfinal-ext_poi.zip导出Excel方法://导出Excel ....
分类:
其他好文 时间:
2015-06-02 20:07:22
阅读次数:
164
1、如何使用LINQ LINQ作为一种数据查询编码方式,本身并不是独立的开发语句,也不能进行应用程序开发。在.NET3.5中,可以在C#中集成LINQ查询代码。在任何源代码文件中,要使用LINQ查询功能,必须引用System.Linq命名空间。使用LINQ to XML要引用System.Xml.L...
分类:
其他好文 时间:
2015-06-02 20:06:44
阅读次数:
128
用Linux的xargs 执行命令:./redis-cli -p 16379 -a 87fgD0GKVk4ZUDgzAQIshxbA6cQXhr keys "audit*" | xargs ./redis-cli -p 16379 -a 87fgD0GKVk4ZUDgzAQIshxbA6cQXhr ...
分类:
其他好文 时间:
2015-06-02 20:04:22
阅读次数:
221
SQL语句的执行不可缺少参数的传递,传递参数直接拼接SQL语句不可避免会遇到SQL注入问题,会造成很严重的系统安全问题,所以一般会使用 SetParameterValue("@abc", abc),拼接一个可变的参数集合parms ,在SQl语句中使用如下
分类:
其他好文 时间:
2015-06-02 20:04:34
阅读次数:
238
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-e escape_char] [-F configfile] ...
分类:
其他好文 时间:
2015-06-02 20:03:40
阅读次数:
160
1. 生成本机的公私钥匙对[oracle@Oracle11_2 scripts]$ ssh-keygen -b 1024 -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/home/o...
分类:
其他好文 时间:
2015-06-02 20:04:43
阅读次数:
97