第七章 循环语句1. 循环语句的老祖宗--Goto语句(可用do…while();代替) 1
//①goto语句的使用(一般情况不用,但想在多重循环中一下子跳到外面时可以用)*******************① 2 int i=0; 3
number: i++; 4...
分类:
其他好文 时间:
2014-05-19 22:45:52
阅读次数:
361
题目描述Given a number sequence whose length is n, you
can delete at most k numbers in the sequence.After that you are asked to answer
the maximum length ...
分类:
其他好文 时间:
2014-05-19 22:21:32
阅读次数:
304
数据类型:undefined、null、boolean、string、number、复杂数据类型object
共六种typeof:undefined、object、boolean、string、number、function 六种console.log(typeof
null); //objec.....
分类:
编程语言 时间:
2014-05-19 21:52:31
阅读次数:
400
简述drop table
tmp_qry_cus_186mcc_highuser_d;create global temporary table
tmp_qry_cus_186mcc_highuser_d( user_id number(15))on commit preserve rows; 这....
分类:
数据库 时间:
2014-05-19 20:57:00
阅读次数:
399
题目链接:HDU 1394 Minimum Inversion
Number【题意】给你一个1~N的数字组成的初始序列,然后每一次都将第一个数字移到最后,形成新的序列,然后求出这些序列的逆序数中的最小值。【思路】开始可以用任意一种方法(线段树
or 暴力 or 树状数组)计算出初始数列的逆序数sum...
分类:
其他好文 时间:
2014-05-19 09:50:31
阅读次数:
282
Problem DescriptionA number sequence is defined
as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given
A, B, and n, you are t...
分类:
其他好文 时间:
2014-05-16 00:34:50
阅读次数:
354
判断integer是否为回文串(负数全部不为回文串)思路很直接,提取出integer中的每一位,一头一尾进行比较是否相同。一次AC
, 直接上代码:public boolean isPalindrome(int x) { if(x = 0 && x 0){ ...
分类:
其他好文 时间:
2014-05-16 00:24:44
阅读次数:
386
1.查找session 以及session number var !DBname DBname !db
= object db(!DBname) !session = !db.lastsession() 下面是查询结果截图 q var !db q var
!sessioon.number2.从某个时...
分类:
其他好文 时间:
2014-05-16 00:12:32
阅读次数:
2061
Row_number配合over(partition by xx order by xx) 与
Group by 的区别, = order + group?SqlBulkCopyGuidance Automation Toolkit 2010
Reference
分类:
其他好文 时间:
2014-05-15 20:39:55
阅读次数:
249
A - Number With The Given Amount Of Divisors
Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u
Submit Status
Description
Given the number n, find the smallest...
分类:
其他好文 时间:
2014-05-15 13:31:36
阅读次数:
343