摘要: Suppose that the fourth generation mobile phone base stations in the Tampere area operate as follows. The area is divided into squares. The squares fo 阅读全文
posted @ 2017-05-03 11:47 walfy 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Given an N*N matrix A, whose elements are either 0 or 1. A[i, j] means the number in the i-th row and j-th column. Initially we have A[i, j] = 0 (1 <= 阅读全文
posted @ 2017-05-03 11:16 walfy 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Every year, Farmer John's N (1 <= N <= 20,000) cows attend "MooFest",a social gathering of cows from around the world. MooFest involves a variety of e 阅读全文
posted @ 2017-04-27 19:58 walfy 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star 阅读全文
posted @ 2017-04-24 18:46 walfy 阅读(219) 评论(0) 推荐(0) 编辑
摘要: C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生 阅读全文
posted @ 2017-04-24 18:43 walfy 阅读(163) 评论(0) 推荐(0) 编辑
摘要: The SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, compute how many quadruplet (a, b, c, d ) ∈ A x B x C x D 阅读全文
posted @ 2017-04-24 15:30 walfy 阅读(656) 评论(0) 推荐(1) 编辑
摘要: Signals of most probably extra-terrestrial origin have been received and digitalized by The Aeronautic and Space Administration (that must be going th 阅读全文
posted @ 2017-04-23 23:35 walfy 阅读(134) 评论(0) 推荐(0) 编辑
摘要: King George has recently decided that he would like to have a new design for the royal graveyard. The graveyard must consist of several sections, each 阅读全文
posted @ 2017-04-23 15:58 walfy 阅读(384) 评论(0) 推荐(0) 编辑
摘要: Some positive integers can be represented by a sum of one or more consecutive prime numbers. How many such representations does a given positive integ 阅读全文
posted @ 2017-04-23 15:15 walfy 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 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. Wri 阅读全文
posted @ 2017-04-23 14:20 walfy 阅读(118) 评论(0) 推荐(0) 编辑