读入以后想枚举j,用个maxv[i][j]数组表示在第i行,从第j个开始n个的最大值。 后来再枚举i,记录最大值。 最小值同理。 复杂度O(abn)。 #include #include #include using namespace std; const int maxn = 1000; con... ...
分类:
其他好文 时间:
2016-04-11 22:15:38
阅读次数:
164
1. [array valueForKey:@"title"]; //Returns an array containing the results of invoking valueForKey: using key on each of the array's objects. 使数组中的每个对 ...
分类:
编程语言 时间:
2016-04-11 20:50:47
阅读次数:
185
1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 using System.Net; 6 using System.Net.Http; 7 using Syste... ...
分类:
Web程序 时间:
2016-04-11 18:12:19
阅读次数:
256
IntelliJ IDEA + Maven + Jetty + Jersey搭建RESTful服务 本文参考以下内容: 使用Jersey实现RESTful风格的webservice(一) Starting out with Jersey & Apache Tomcat using IntelliJ ...
分类:
其他好文 时间:
2016-04-11 12:15:15
阅读次数:
291
1 #include <cstdio> 2 #include <cstring> 3 #include <queue> 4 5 using namespace std; 6 struct node { 7 int wat[3]; //记录中间过程状态 8 int step;//最小倒水次数。 9 } ...
分类:
其他好文 时间:
2016-04-11 12:07:17
阅读次数:
176
//头文件queue.h #pragma once #include<assert.h> #include<iostream> using namespace std; typedef int ElemType; #define MAX_SIZE 8 typedef struct Queue { E ...
分类:
其他好文 时间:
2016-04-11 11:57:18
阅读次数:
135
输入一本书的页码,计算页码中1,2,3,...9,0的出现次数 使用C++实现 #include<iostream>#include<stdio.h>#include<stdlib.h>using namespace std;int main(){ int n,i,j,count[10]={0},t ...
分类:
编程语言 时间:
2016-04-10 20:58:17
阅读次数:
228
1.图标右上角显示消息个数 2.后台运行 info.plist文件里面添加 Required background modes -- App plays audio or streams audio/video using AirPlay 然后delegate里面 有可能还要添加这个播放0kb音频的 ...
分类:
移动开发 时间:
2016-04-10 20:56:45
阅读次数:
193
1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Drawing; 5 using System.Linq; 6 using System.Text; 7 ...
分类:
数据库 时间:
2016-04-10 18:00:18
阅读次数:
307
继承机制是面向对象程序设计使代码可以复用的最重要的手段,它允许程序员在保持原有类特性的基础上进行扩展,增加功能。这样产生新的类,称派生类。继承呈现了面向对象程序设计的层次结构,体现了由简单到复杂的认知过程。
#includeiostream>
using namespace std;
class Base
{
public:
Base()
{}
~Base()
{}
p...
分类:
编程语言 时间:
2016-04-10 14:49:04
阅读次数:
280