题目:Given two sorted integer arraysnums1andnums2, mergenums2intonums1as one sorted array.Note:You may assume thatnums1has enough space (size that is gr...
分类:
其他好文 时间:
2015-05-18 16:12:27
阅读次数:
87
题目描述
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the se...
分类:
其他好文 时间:
2015-05-18 09:12:13
阅读次数:
118
一、typedef作用简介 * 我们可以使用typedef关键字为各种数据类型定义一个新名字(别名)。 #include typedef int Integer;
typedef unsigned int UInterger; typedef float Float; int main(int ar...
分类:
编程语言 时间:
2015-05-18 00:53:54
阅读次数:
212
题目链接:http://poj.org/problem?id=2356
Description
The input contains N natural (i.e. positive integer) numbers ( N <= 10000 ). Each of that numbers is not greater than 15000. This numbers are not ...
分类:
其他好文 时间:
2015-05-17 18:49:32
阅读次数:
126
Merge Sorted Array
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.
Note:
You may assume that nums1 has enough space (size that is greater or equal...
分类:
其他好文 时间:
2015-05-17 18:44:52
阅读次数:
100
委托是一种类型.委托像String,像Integer,像我们定义的Class一样,是一种类中.委托是一种引用方法的类型.与委托的签名(参数和返回值)匹配的方法都可以分配给该委托.方法可以是静态方法,也可以是实例方法.一旦为委托分配了方法,委托将与该方法具有相同的行为.委托方法的调用可以像其他方法一样...
分类:
其他好文 时间:
2015-05-17 15:16:39
阅读次数:
112
There is an integer matrix which has the following features:The numbers in adjacent positions are different.The matrix has n rows and m columns.For al...
分类:
其他好文 时间:
2015-05-17 14:58:30
阅读次数:
115
Multiplication Puzzle
Description
The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the row and scores the number of points equal to the product of the number o...
分类:
其他好文 时间:
2015-05-17 12:18:43
阅读次数:
88
Find The Multiple
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 20297
Accepted: 8236
Special Judge
Description
Given a positive integer n, write a ...
分类:
其他好文 时间:
2015-05-17 09:27:30
阅读次数:
116
FibonacciTime Limit:1000MSMemory Limit:65536KTotal Submissions:10440Accepted:7421DescriptionIn the Fibonacci integer sequence,F0= 0,F1= 1, andFn=Fn? 1...
分类:
其他好文 时间:
2015-05-17 00:47:48
阅读次数:
149