A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal length of the sub...
分类:
其他好文 时间:
2014-08-23 11:22:40
阅读次数:
198
本题就是大数相加,题目都不用看了。
不过注意的就是HDU的肯爹输出,好几次presentation error了。
还有个特殊情况,就是会有空数据的输入case。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using...
分类:
其他好文 时间:
2014-08-23 01:09:59
阅读次数:
178
Boring countingTime Limit: 1000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:351864-bit integer IO format:%I64d Java class nam...
分类:
其他好文 时间:
2014-08-22 23:45:39
阅读次数:
187
环境:OFFICE WORD 2007
打开WORD,在菜单的“视图”->“宏”->“查看宏”->“创建”
Sub 宏1()
Dim MyFile As String
Dim Arr(1000) As String '一次处理最大的文件数量,根据需要修改数字1000改为需要处理的数量
Dim count As Integer
MyFile = Dir("F:\...
分类:
Web程序 时间:
2014-08-22 19:48:19
阅读次数:
304
//用java写java1,1,2,4,7,13,24,44算法----百度知道
importjava.util.ArrayList;
importjava.util.List;
importjava.util.Scanner;
publicclassResult{
// 前三个数
privateinta=1,b=1,c=2;
privateList<Integer>list=null;
// 构造方法
Result(){
list=newArrayLi..
分类:
编程语言 时间:
2014-08-22 18:11:20
阅读次数:
245
C中,整型有: characters,shortinteger,integer,longinteger 看起来,longinteger要比shortinteger大,但是这也是不一定的. shortinteger最少有16位,而longinteger最少要32位.但是,要设计默认的intege...
分类:
其他好文 时间:
2014-08-22 15:47:08
阅读次数:
186
对于java初学者很重要的知识:Integer与int之间的区别...
分类:
编程语言 时间:
2014-08-22 10:50:46
阅读次数:
233
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:
其他好文 时间:
2014-08-22 00:14:05
阅读次数:
172
Description
Triangles are polygons with three sides and strictly positive area. Lattice triangles are the triangles all whose vertexes have integer coordinates. In this problem you have to find the...
分类:
其他好文 时间:
2014-08-21 22:56:15
阅读次数:
443
Reverse IntegerReverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321click to show spoilers.Have you thought about th...
分类:
其他好文 时间:
2014-08-21 19:07:04
阅读次数:
142