登录
|
注册
公司
标签
文章
搜索
POJ
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
0
0
809
Farmer John's pastoral neighborhood has N farms (2 F1 --- (13) ---- F6 --- (9) ----- F3 | | (3) | | (7) F4 --- (20) -------- F2 | | | (2) F5 | F7 Being an ASCII diagram, it is not precisely to scale, of course. Each farm can ...
阅读题目
POJ
问答题
经典指数
0
0
610
Dr. Yao is involved in a secret research on the topic of the properties of recurrent function. Some of the functions in this research are in the following pattern: in which set {ai } = {1, 2, …, d-1} and {bi } = {0, 1, …, d-1}.We denote: Yao's question is that, given two positive integer m and k, could you find a minimal non-negative integer x that 输入描述 There are several test cases. The first line of each test case contains an integer d (2≤d ≤100). The second line contains ...
阅读题目
POJ
问答题
经典指数
0
0
841
Simon and Garfunkel Corporation (SG Corp.) is a large steel-making company with thousand of customers. Keeping the customer satisfied is one of the major objective of Paul and Art, the managers. Customers issue orders that are characterized by two integer values q , the amount of steel required (in tons) and d , the due date (a calender date converted in seconds). The due date has to be met if SG Corp. accepts the order. Stated another way, when an order is accepted, the corresponding amount ...
阅读题目
POJ
问答题
经典指数
0
0
565
There is a group of N bakers in the town of Utopia. These bakers hold a monthly celebration in which they award a prize to some of the luckier among themselves. These lucky guys are chosen as follows: In the beginning there are some chalk marks on some of the bakers' houses. Each baker has a list of his/her favorite bakers. After each celebration each of the winners puts a chalk mark on the house of all the bakers in his/her favorite list. Before each celebration those bakers with an odd numbe ...
阅读题目
POJ
问答题
经典指数
0
0
635
FJ and his cows enjoy playing a mental game. They write down the numbers from 1 to N (1 3 1 2 4 4 3 6 7 9 16 Behind FJ's back, the cows have started playing a more difficult game, in which they try to determine the starting sequence from only the final total and the number N. Unfortunately, the game is a bit above FJ's mental arithmetic capabilities. Write a program to help FJ play the game and keep up with the cows.输入描述 Line 1: Two space-separated int ...
阅读题目
POJ
问答题
经典指数
0
0
913
The interconnection of the relays in a cable TV network is bi-directional. The network is connected if there is at least one interconnection path between each pair of relays present in the network. Otherwise the network is disconnected. An empty network or a network with a single relay is considered connected. The safety factor f of a network with n relays is: 1. n, if the net remains connected regardless the number of relays removed from the net. 2. The minimal number of relays that disconnec ...
阅读题目
POJ
问答题
经典指数
0
0
730
Mr. and Mrs. Smith are going to the seaside for their holiday. Before they start off, they need to choose a hotel. They got a list of hotels from the Internet, and want to choose some candidate hotels which are cheap and close to the seashore. A candidate hotel M meets two requirements: Any hotel which is closer to the seashore than M will be more expensive than M. Any hotel which is cheaper than M will be farther away from the seashore than M. 输入描述 There are several test cases. The ...
阅读题目
POJ
问答题
经典指数
0
0
1207
Before ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes from Irreversibly Bound Money (IBM). The idea behind is simple. Whenever some ACM member has any small money, he takes all the coins and throws them into a piggy-bank. You know that this process is irreversible, the coins cannot be removed without breaking the pig. After a sufficiently long time, there should be enough cash in the piggy-bank to pay everything ...
阅读题目
POJ
问答题
经典指数
0
0
963
In a few months the European Currency Union will become a reality. However, to join the club, the Maastricht criteria must be fulfilled, and this is not a trivial task for the countries (maybe except for Luxembourg). To enforce that Germany will fulfill the criteria, our government has so many wonderful options (raise taxes, sell stocks, revalue the gold reserves,...) that it is really hard to choose what to do. Therefore the German government requires a program for the following task: Two ...
阅读题目
POJ
问答题
经典指数
0
0
920
Farmer John completed his new barn just last week, complete with all the latest milking technology. Unfortunately, due to engineering problems, all the stalls in the new barn are different. For the first week, Farmer John randomly assigned cows to stalls, but it quickly became clear that any given cow was only willing to produce milk in certain stalls. For the last week, Farmer John has been collecting data on which cows are willing to produce milk in which stalls. A stall may be only assigned t ...
阅读题目
POJ
问答题
经典指数
<<
<
5
6
7
8
9
10
>
>>
497
题目数
1
贡献者
9
答案数
扫描后移动端查看
我也分享一个题目
同类标签
内容运营
用户运营
操作系统
C/C++
网络基础
C++工程师
编译和体系结构
数据库
编程基础
java
微信公众号
欢迎加入,一起群聊
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录