问题 E: Distance
时间限制: 1 Sec 内存限制: 128 MB
提交: 48 解决: 12
[提交][状态][论坛]
题目描述
There is a battle field. It is a square with the side length 100 miles, and unfortunately we have two comrades who get ...
分类:
其他好文 时间:
2014-05-26 05:57:27
阅读次数:
325
add two numbers without arithmetic
分类:
其他好文 时间:
2014-05-26 01:25:43
阅读次数:
224
You are given two linked lists representing two non-negative numbers. The digits are
stored in reverse order and each of their nodes contain a single digit. Add the two numbers
and return i...
分类:
其他好文 时间:
2014-05-25 21:36:52
阅读次数:
268
引言数学计算的模拟类题目,往往是要求实现某种计算(比如两数相除),实现的过程中会有所限定,比如不允许乘法等等。这类题目首先要注意计算过程中本身的特殊情况。比如求相除,则必须首先反映过来除数不能为0。其次要记得考虑负数的情况,如果计算范围不单单是整数,还要考虑double的比较方式。最后要注意越界情况...
分类:
其他好文 时间:
2014-05-25 19:10:39
阅读次数:
287
首先,为什么要指针对齐(Pointer Alignment)?
指针对齐有时候非常重要,因为许多硬件相关的东西在对齐上存在限制。在有些系统中,某种数据类型只能存储在偶数边界的地址处。
例如,在经典的 SPARC架构(以及经典的ARM)上,你不能从奇数地址读取一个超过1字节的整型数据。尝试这么做将会立即终止程序,并伴随着总线错误。而在X86架构上,CPU硬件处理了这个问题,只是这么做将会花费更多...
分类:
其他好文 时间:
2014-05-25 18:12:37
阅读次数:
917
战斗
懵懂的少年,不懂学习,整天旷课逃学,直到毕业
无意中成了村里伙伴唯一考上初中的,老人们说,厉害
上了初中还继续跟同学打架,老师批评,竟然落泪,然后老师说,你太小,留级
留级后黑暗中点日光灯,触电,怕怕,考试竟然进了班里的前三名
去重点高中!从此懂得了努力,第一次人生的战斗
在远离家乡的县城里,我看着眼花缭乱的游戏机,听到里面喊
three,two,one,zero,fight
...
分类:
其他好文 时间:
2014-05-25 12:50:32
阅读次数:
188
1.JS include :DOM BOM ECMA2.Browser 分别独立实现dom &
JSas if two isolated islands3.JS操作DOMfrom the island to the other one4.DOM性能The
bridges between island...
分类:
其他好文 时间:
2014-05-25 11:28:12
阅读次数:
246
A palindromic number or numeral palindrome is a 'symmetrical' number like 16461 that remains the same when its digits are reversed. In this problem you will be given two integers i j, you have to find...
分类:
其他好文 时间:
2014-05-25 07:41:08
阅读次数:
253
The Leak of the Memory in C++
In this chaper I will introduce a new smart pointer which is scoped_ptr;
It likes auto_ptr but better. When peopel use auto_ptr, sometimes they forget
that auto_...
分类:
编程语言 时间:
2014-05-25 07:03:10
阅读次数:
373
Flip GameDescriptionFlip game is played on a
rectangular 4x4 field with two-sided pieces placed on each of its 16 squares.
One side of each piece is w...
分类:
其他好文 时间:
2014-05-25 03:21:52
阅读次数:
255