这道题使用暴力解法O(n*n)会超时,那么用动态维护最大值可以优化到O(n)。这种思想非常实用。#include#include#include#include#include#include#include#include#include#include#include#include#inclu...
分类:
其他好文 时间:
2015-02-10 01:48:29
阅读次数:
121
安装和查看ORACLE执行计划ORACLE在执行SQL语句时使用的步骤的集合叫做执行计划前起条件:在目录:$ORACLE_HOME/RDBMS/ADMIN目录下的执行utlxplan.sql查看执行计划:EXPLANPLANFOR<SQL语句>CREDIT@ORCL>explainplanforselect*fromcreditcard;Explained.看SQL执行计划的..
分类:
数据库 时间:
2015-02-08 23:24:41
阅读次数:
239
问题是这样:原来代码.html.erb页面中有一个select元素,其每个item对应的是model中的类常量:
类中的常量定义如下:
class Order < ActiveRecord::Base
PAYMENT_TYPES = ["Check","Credit card","Purchase order"]
end
现在想把PAYMENT_TYPES重构至数据库中的表里去,于...
分类:
数据库 时间:
2015-02-03 11:05:10
阅读次数:
186
Open Credit SystemInput:Standard InputOutput:Standard OutputIn an open credit system, the students can choose any course they like, but there is a pro...
分类:
其他好文 时间:
2015-02-02 19:51:34
阅读次数:
165
//?shim?layer?with?setTimeout?fallback
//?credit?Erik?M?ller?and?http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/
(function()?{
????var?lastTime?=?0;
??...
分类:
其他好文 时间:
2015-01-30 06:47:31
阅读次数:
933
粘上我前段时间写的sql语句select distinctt1.mcs_cre_credit_head_id,t2.mcs_cre_credit_line_customer_change_head_id,t1.bill_code,t2.customer_code,t2.customer_name,(...
分类:
数据库 时间:
2015-01-08 11:11:11
阅读次数:
285
UVA - 11078
Open Credit System
Time Limit: 3000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
Submit Status
Description
Problem E
Open Credit System
Input: Stan...
分类:
编程语言 时间:
2015-01-04 10:07:07
阅读次数:
276
SSH原理与运用(二):远程操作与端口转发作者:阮一峰接着前一次的文章,继续介绍SSH的用法。=======================================SSH原理与运用(二):远程操作与端口转发作者:阮一峰(Image credit:Tony Narlock)七、远程操作SSH不...
分类:
其他好文 时间:
2015-01-02 15:53:43
阅读次数:
196
Java端:@RequestMapping("/report") public String report() { return "/credit/report/report"; } @RequestMapping("/reportOut") @ResponseBody public void r....
分类:
编程语言 时间:
2014-12-31 16:12:32
阅读次数:
141
CREATETABLEstudent_t(snoChar(7)PRIMARYKEY,--学号snameVarchar(20)NOTNULL,--姓名ssexCHAR(2)NOTNULL,--性别sageSmallint,--年龄CLONCHAR(5)--学生所在班级的编号);CREATETABLEcourse_t(cnoCHAR(1)PRIMARYKEY,--课程编号cnameVarchar(20)NOTNULL,--课程名称creditSMALLINT--..
分类:
数据库 时间:
2014-12-29 06:41:37
阅读次数:
425