Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or another ex...
分类:
其他好文 时间:
2014-08-08 23:49:56
阅读次数:
314
JAVA中Long与Integer比较容易犯的错误...
分类:
编程语言 时间:
2014-08-08 21:27:06
阅读次数:
370
Divide Two IntegersDivide two integers without using multiplication, division and mod operator.不用* 、/、%来做除法。只能加减了啊亲!算法思路:一个一个加上去必超时,例如dividend = Integ...
分类:
其他好文 时间:
2014-08-08 20:59:36
阅读次数:
186
给一个n边形,求将这个多边形分成只含有三角形和四边形的分割数...
分类:
其他好文 时间:
2014-08-08 18:15:26
阅读次数:
209
public class Division { public static void main(String[] args){ int count = 1; for(int number = 100;number <= 1000;number++){ ...
分类:
其他好文 时间:
2014-08-08 17:51:46
阅读次数:
197
public static String getTimeForShowing(String strTime) { System.out.println(strTime); //年 int year = Integer.parseInt(st...
分类:
其他好文 时间:
2014-08-08 17:40:06
阅读次数:
181
Description
Given m sequences, each contains n non-negative integer. Now we may select one number from each sequence to form a sequence with m integers. It's clear that we may get n ^ m this kind o...
分类:
其他好文 时间:
2014-08-08 16:10:06
阅读次数:
236
Problem Description:
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.
Given an integer n, return all distinct solution...
分类:
其他好文 时间:
2014-08-08 12:46:55
阅读次数:
180
Buy TicketsTime Limit: 4000 MS Memory Limit: 65536 KB64-bit integer IO format: %I64d , %I64u Java class name: Main[Submit] [Status] [Discuss]Descripti...
分类:
其他好文 时间:
2014-08-08 12:13:15
阅读次数:
227
To see how pointers work, look at the following example.1 var2 X, Y: Integer; // X and Y are Integer variables3 P: ^Integer; // P points to an Intege....
分类:
其他好文 时间:
2014-08-08 01:47:55
阅读次数:
304