问题 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
Background
Some concepts in Mathematics and Computer Science are simple in one or two dimensions but become more complex when extended to arbitrary dimensions. Consider solving differential equations...
分类:
其他好文 时间:
2014-05-26 04:31:34
阅读次数:
234
Summation of primes
Problem 10
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
Find the sum of all the primes below two million.
还是使用Sieve of Eratosthenes 算法
我的python代码如下:
...
分类:
其他好文 时间:
2014-05-26 03:40:15
阅读次数:
243
add two numbers without arithmetic
分类:
其他好文 时间:
2014-05-26 01:25:43
阅读次数:
224
战斗
懵懂的少年,不懂学习,整天旷课逃学,直到毕业
无意中成了村里伙伴唯一考上初中的,老人们说,厉害
上了初中还继续跟同学打架,老师批评,竟然落泪,然后老师说,你太小,留级
留级后黑暗中点日光灯,触电,怕怕,考试竟然进了班里的前三名
去重点高中!从此懂得了努力,第一次人生的战斗
在远离家乡的县城里,我看着眼花缭乱的游戏机,听到里面喊
three,two,one,zero,fight
...
分类:
其他好文 时间:
2014-05-25 12:50:32
阅读次数:
188
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
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
【题目】
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 solutions to the n-queens puzzle.
Each solution contains a distinct board configuratio...
分类:
其他好文 时间:
2014-05-24 17:12:32
阅读次数:
237
题目描述If the difference between any two adjancent
elements in a sequence is not more than K, then we call this sequence is a
K-diff sequence. A subseque...
分类:
其他好文 时间:
2014-05-24 09:39:27
阅读次数:
340