http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5274 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int n,l; 7 char str[10...
分类:
数据库 时间:
2014-10-28 23:39:32
阅读次数:
433
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplicationTest{ class Program { stati...
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace @sealed{ class Program { static void Main(str...
第九章 多重继承
9.2 接口继承
Intertfacees.cpp
/**
* 书本:【ThinkingInC++】
* 功能:接口继承Interfaces.cpp
* 时间:2014年10月28日20:06:31
* 作者:cutter_point
*/
#include
#include
#include
using namespace std;
...
分类:
编程语言 时间:
2014-10-28 21:48:35
阅读次数:
204
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplicationTest{ class Program { stati...
题意: 有n*m个格子(n,m #include #include #include #include #include #include #include using namespace std;#define N 100007int nowR[N],R[N],b[N];map mp,CntC,n...
分类:
其他好文 时间:
2014-10-28 21:21:24
阅读次数:
231
喷水装置(二)
时间限制:3000 ms | 内存限制:65535 KB
难度:4
描述有一块草坪,横向长w,纵向长为h,在它的橫向中心线上不同位置处装有n(n<=10000)个点状的喷水装置,每个喷水装置i喷水的效果是让以它为中心半径为Ri的圆都被润湿。请在给出的喷水装置中选择尽量少的喷水装置,把整个草坪全部润湿。
输入第一行输入一个正整数N表示共有n次测...
分类:
其他好文 时间:
2014-10-28 20:11:00
阅读次数:
185
http://acm.hdu.edu.cn/showproblem.php?pid=1053#include #include #include #include #include using namespace std; int a[30];char s[1005];int cal(char .....
分类:
其他好文 时间:
2014-10-28 19:52:29
阅读次数:
204
题意:求g(i)=k*i+b; f(g(i)) for 0#include #include #include typedef long long LL;LL M;using namespace std;struct Matrix{ LL m[4][4];};Matrix Mul(Matrix...
分类:
其他好文 时间:
2014-10-28 19:36:49
阅读次数:
170
#include
#include
#include
#include
#include
#include
using namespace std;
const int dx[] = { -1 , 0 , 0, 1};
const int dy[] = { 0 ,-1 ,1 , 0 }; //4 direction
struct Point{
Point(){};
Point(...
分类:
其他好文 时间:
2014-10-28 18:03:40
阅读次数:
206