
POJ
文章平均质量分 75
单调.
单调
展开
-
POJ - 3104 -Drying
题意:有一堆衣服,每件衣服含水量不同,自然风干一分钟1滴水,有一个烘干机一分钟干k滴水,问所有衣服都干的最短时间.二分查找最短时间.这道题要用到一个公式.设衣服含水量为ai,烘干机用x分钟,所有衣服都干的最短时间为mid得k* x + (mid - x) * 1 >= ai;化简得x = (ai - mid) / (k- 1);当k == 1的时候就有除以0得情况,所有要把k == 1的情况...原创 2018-04-10 10:34:46 · 277 阅读 · 0 评论 -
POJ - 2348 Euclid's Game
Two players, Stan and Ollie, play, starting with two natural numbers. Stan, the first player, subtracts any positive multiple of the lesser of the two numbers from the greater of the two ...原创 2018-04-25 15:09:36 · 219 阅读 · 0 评论 -
POJ - 1751 Highways (最小生成树)
The island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has a very poor system of public highways. The Flatopian government is aware of this problem and has already const...原创 2018-04-25 14:56:13 · 226 阅读 · 0 评论 -
POJ - 1750 Dictionary
Authors of the new, all-in-one encyclopedia have organized the titles in the order they consider most appropriate for their readers. It's not always alphabetical, because they want to obs...原创 2018-04-25 10:09:19 · 244 阅读 · 0 评论 -
POJ - 2109 Power of Cryptography
Current 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 r...原创 2018-04-24 09:49:26 · 225 阅读 · 0 评论 -
POJ - 1426 Find The Multiple
Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater than ...原创 2018-04-24 09:35:13 · 203 阅读 · 0 评论 -
POJ - 1068 Parencodings
Let S = s1 s2...s2n be a well-formed string of parentheses. S can be encoded in two different ways: q By an integer sequence P = p1 p2...pn where pi is the number of left parenthes...原创 2018-04-24 08:51:50 · 188 阅读 · 0 评论 -
POJ - 1573 Robot Motion
A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. The possible instruct...原创 2018-04-23 19:57:38 · 200 阅读 · 0 评论 -
POJ - 3026 Borg Maze(BFS + 最小生成树)
The Borg is an immensely powerful race of enhanced humanoids from the delta quadrant of the galaxy. The Borg collective is the term used to describe the group consciousness of the Borg ci...原创 2018-04-23 16:18:33 · 235 阅读 · 0 评论 -
POJ - 2349 Arctic Network
The Department of National Defence (DND) wishes to connect several northern outposts by a wireless network. Two different communication technologies are to be used in establishing the net...原创 2018-04-25 16:10:18 · 260 阅读 · 0 评论