
poj
nyoj_lvy
哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈
展开
-
Power of Cryptography(高精度)
DescriptionCurrent work in cryptography involves (among other things) large prime numbers and computing powers of numbers among these primes. Work in this area has resulted in the practical use of原创 2014-06-30 15:14:34 · 556 阅读 · 0 评论 -
Paid Roads
DescriptionA network of m roads connects N cities (numbered from 1 to N). There may be more than one road connecting one city with another. Some of the roads are paid. There are two ways to pay fo原创 2014-11-18 15:23:47 · 729 阅读 · 1 评论 -
Pots
DescriptionYou are given two pots, having the volume of A and B liters respectively. The following operations can be performed:FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap;DROP(i)原创 2014-11-17 20:55:20 · 464 阅读 · 0 评论 -
Shuffle'm Up
DescriptionA common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two stacks of poker chips, S1 and S2, each stack contain原创 2014-10-30 11:05:45 · 361 阅读 · 0 评论 -
Space Station Shielding(洪泛算法)
DescriptionRoger Wilco is in charge of the design of a low orbiting space station for the planet Mars. To simplify construction, the station is made up of a series of Airtight Cubical Modules (ACM原创 2014-07-14 18:52:33 · 834 阅读 · 0 评论 -
Paths on a Grid(组合数学)
DescriptionImagine you are attending your math lesson at school. Once again, you are bored because your teacher tells things that you already mastered years ago (this time he's explaining that (a+原创 2014-07-08 09:24:35 · 407 阅读 · 0 评论 -
Prime Path(广搜)
DescriptionThe ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room numbers on their offices. — It i原创 2014-07-06 08:53:50 · 469 阅读 · 0 评论 -
Catch That Cow
Time Limit: 2000MS Memory Limit: 65536KTotal Submissions: 44494 Accepted: 13904DescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He原创 2014-07-04 10:52:23 · 409 阅读 · 0 评论 -
Sliding Window(单调队列)
DescriptionAn array of size n ≤ 106 is given to you. There is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the wi原创 2014-07-02 10:06:14 · 969 阅读 · 0 评论 -
A Knight's Journey(深搜)
DescriptionBackground The knight is getting bored of seeing the same black and white squares again and again and has decided to make a journey around the world. Whenever a knight moves, it is原创 2014-07-02 17:49:14 · 375 阅读 · 0 评论 -
Children of the Candy Corn
Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9939 Accepted: 4313DescriptionThe cornfield maze is a popular Halloween treat. Visitors are shown the entrance and原创 2014-11-06 11:02:29 · 375 阅读 · 0 评论