一个进制转换的小脚本#!/usr/bin/bashif [ $1 == "--help" -o $1 == "-h" ]; then echo "usage: OBASE; IBASE; NUMBER"else echo "obase=$1; ibase=$2; $3" | bcfi上面这个脚本, ...
分类:
其他好文 时间:
2014-11-08 22:01:13
阅读次数:
349
Linux Mint 17下安装的是默认的OpenJDK,可以使用java -version查看现在需要使用Sun/Oracle官方的JDK:http://www.oracle.com/technetwork/java/javase/downloads/index.html下载之后安装步骤如下:su...
分类:
系统相关 时间:
2014-11-08 19:28:26
阅读次数:
233
题意:有一个由数字组成的序列规律为
112123123412345123456123456712345678123456789123456789101234567891011 ...
输入位置n,计算这一串数字第n位是什么数字...
分类:
其他好文 时间:
2014-11-08 18:18:33
阅读次数:
292
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1,2,1,...
分类:
其他好文 时间:
2014-11-08 16:45:18
阅读次数:
111
Smallest Difference
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 4639
Accepted: 1290
Description
Given a number of distinct decimal digits, you can fo...
分类:
其他好文 时间:
2014-11-08 16:44:18
阅读次数:
284
Determine whether an integer is a palindrome. Do this without extra space.Notes:1) Negative number is notpalindrome.2) Compare from head to tail, cons...
分类:
其他好文 时间:
2014-11-08 16:43:57
阅读次数:
124
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2014-11-08 16:40:21
阅读次数:
187
http://www.cnblogs.com/LDaqiang/articles/1157998.html由于需求变动,现要将一个类型NUMBER(8,2)的字段类型改为 char。大体思路如下: 将要更改类型的字段名改名以备份,然后添加一个与要更改类型的字段名同名的字段(原字段已经改名),然后更新...
分类:
数据库 时间:
2014-11-08 15:10:03
阅读次数:
191
--Oracle创建表create table t_test( test_id Number , gender char(1), test_name nvarchar2(10) --注意最后一个字段结尾不能有分号)--Oralce向t_test表里插入...
分类:
数据库 时间:
2014-11-08 14:57:54
阅读次数:
169
protected void Page_Load(object sender, EventArgs e) { //直接在bin add referece search Microsoft.Office.Interop.Excel.dll (.net 4.5 version...
分类:
其他好文 时间:
2014-11-08 14:55:36
阅读次数:
161