key words:私有变量,类静态变量,生成器,导入Python模块,r查看模块可以使用的函数,查看帮助信息,启动外部程序,集合,堆,时间模块,random模块,shelve模块,文件读取等>>> class Rectangle:... def __init__(self):... self.__...
分类:
编程语言 时间:
2014-08-19 23:49:35
阅读次数:
342
非常难的问题,数组线性时间。属于我之前说的解法的借助辅助空间。给定两个柱子,他们之间的面积由什么确定呢?没错,他们之间的距离和他们之间最矮的那个柱子的高度。我们并不知道这个柱子在什么位置,所以仅仅能遍历,这个复杂度就上去了。那有没有一个方法避免找中间小柱子呢?先想什么情况下不用找。除非你知道枚举出两...
分类:
其他好文 时间:
2014-08-19 16:16:44
阅读次数:
176
码农最怕眼高手低今天来练习mvc Area技术和bootstrap以及异步表单的C#代码实现。1.area区域架构对于建立复杂业务逻辑很有帮助,由 AreaRegistration.RegisterAllAreas()方法遍历路由表,获得所有注册的路由。参见建立类库Common,下设一个文件夹Boo...
分类:
Web程序 时间:
2014-08-18 23:15:33
阅读次数:
495
目录概述路由特性使用路由可选参数和参数的默认值路由前缀默认路由路由约束自定义路由约束路由名区域(Area)总结系列文章[Asp.net MVC]Asp.net MVC5系列——第一个项目[Asp.net MVC]Asp.net MVC5系列——添加视图[Asp.net MVC]Asp.net MVC...
分类:
Web程序 时间:
2014-08-17 16:48:32
阅读次数:
310
解题报告
题意:
又是求面积并
思路:
又是求面积并,还被坑了,题目明明描述的是int坐标,用了double才过。。。
#include
#include
#include
#include
using namespace std;
struct Seg {
double lx,rx,h;
int v;
friend bool operator <(Seg...
分类:
其他好文 时间:
2014-08-17 13:07:12
阅读次数:
195
Games with Rectangle
Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
In this task Anna and Maria play the following game. Initia...
分类:
其他好文 时间:
2014-08-17 11:50:42
阅读次数:
329
Connect themTime Limit:1 Second Memory Limit:32768 KBYou havencomputers numbered from 1 tonand you want to connect them to make a small local area net...
分类:
其他好文 时间:
2014-08-17 01:03:41
阅读次数:
195
1、数学知识 求三角形的面积 三边的边长分别为:a, b, c; 公式:s = (a + b + c) / 2; area = √s * ( s - a) * (s - b) * (s -c);2、源代码#include#includeusing namespace std;bool Tri...
分类:
其他好文 时间:
2014-08-16 22:27:41
阅读次数:
243
题目链接:点击打开链接
题意就是求最大面积
枚举每个柱子作为起点
然后二分两边长度。 求个区间最值。
#include
#include
#include
using namespace std;
#define ll long long
#define N 100100
inline bool rd(int &n){
int x = 0, tmp = 1;
...
分类:
其他好文 时间:
2014-08-16 18:34:41
阅读次数:
228
文章为学习汇总网上资料
instance = 内存结构(SGA,system global area) +后台进程
内存结构 = 共享池+数据高速缓存+重做日志缓冲区+其他
后台进程 = DBWn(database writer n个)+LGWR(log writers)+SMON(system monniter)+PMON(progress moniter)+CKP...
分类:
数据库 时间:
2014-08-15 23:50:09
阅读次数:
580