There areNintegers in an arrayA. All but one integer occur in pairs. Your task is to find out the number that occurs only once.Input FormatThe first l...
分类:
其他好文 时间:
2014-08-14 13:55:18
阅读次数:
242
1、需求,表 SYS_INFO 的 NAME 字段会重复,按照 创建时间CREATE_AT 字段,取最新一条,其他隐藏SELECT * FROM (SELECT T.*,ROW_NUMBER() OVER(PARTITION BY NAME ORDER BY CREATE_AT DESC) AS ....
分类:
数据库 时间:
2014-08-14 13:38:18
阅读次数:
203
解题报告
题目传送门
题意:
给n个数,每次左移一位,求最小逆序数。
思路:
如果每次左移一位求一次逆序数肯定不行的。
可以知道,每次左移一位,也就是第一个数移到最后一位,逆序数应该减去第一个数以后比第一个数小的个数,再加上比第一个数大的个数。
原本用线段树求出每一位后面比这一位小的个数再用上面的办法求最小逆序数,没有想到每一次移动会导致后面比它本身大的数都要加1。
这题巧妙就在这...
分类:
其他好文 时间:
2014-08-14 10:46:48
阅读次数:
190
题解:因为模比较小,所以一定会产生循环节,所有先计算循环节,然后直接求解。#include int main(){ int a,b,n,f[50]; f[1]=f[2]=1; while(scanf("%d%d%d",&a,&b,&n),a|b|n){ int t1,t2,...
分类:
其他好文 时间:
2014-08-14 10:42:18
阅读次数:
170
这里提供一种方法,使用 APPEND 提示,使得十分钟内插入上亿数据成为可能。-- Create tablecreate table TMP_TEST_CHAS_LEE(f01 VARCHAR2(20),f02 NUMBER(10) not null,f03 VARCHAR2(21),f04 VAR...
分类:
数据库 时间:
2014-08-14 10:40:18
阅读次数:
386
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=lixora)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version ...
分类:
其他好文 时间:
2014-08-14 01:38:17
阅读次数:
334
Problem Description
A project manager wants to determine the number of the workers needed in every month. He does know the minimal number of the workers needed in each month. When he hires or fires...
分类:
其他好文 时间:
2014-08-14 01:36:07
阅读次数:
332
In the partime, a simle program attracted my attention whose content is to change number to english by reading rule of money.It took about one hour to deal with this question.
Now the source was sh...
分类:
其他好文 时间:
2014-08-14 01:30:57
阅读次数:
268
1 /** 2 * Created by guoyongfeng on 2014/7/7. 3 * 4 * @Author guoyongfeng 5 * @Date 2014-07-07 6 * @Version 1.0.0 7 * @update ...
分类:
其他好文 时间:
2014-08-14 01:26:07
阅读次数:
219
实现如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ public class Number { public str...
分类:
其他好文 时间:
2014-08-14 01:23:47
阅读次数:
202