20:Communication System(翻译)

来源:http://noi.openjudge.cn/ch0406/20/

 Communication System

 

We have received an order from Pizoor Communications Inc. for a special communication system. The system consists of several devices. For each device, we are free to choose from several manufacturers. Same devices from two manufacturers differ in their maximum bandwidths and prices.
By overall bandwidth (B) we mean the minimum of the bandwidths of the chosen devices in the communication system and the total price (P) is the sum of the prices of all chosen devices. Our goal is to choose a manufacturer for each device to maximize B/P.

输入

The first line of the input file contains a single integer t (1 ≤ t ≤ 10), the number of test cases, followed by the input data for each test case. Each test case starts with a line containing a single integer n (1 ≤ n ≤ 100), the number of devices in the communication system, followed by n lines in the following format: the i-th line (1 ≤ i ≤ n) starts with mi (1 ≤ mi ≤ 100), the number of manufacturers for the i-th device, followed by mi pairs of positive integers in the same line, each indicating the bandwidth and the price of the device respectively, corresponding to a manufacturer.

输出

Your program should produce a single line for each test case containing a single number which is the maximum possible B/P for the test case. Round the numbers in the output to 3 digits after decimal point.

样例输入

1 3
3 100 25 150 35 80 25
2 120 80 155 40
2 100 100 120 110

样例输出

0.649

翻译:

我们已收到Pizoor Communications Inc.的特殊通信系统的订单。该系统由多个设备组成。对于每个设备,我们可以从多个制造商处自由选择。来自两个制造商的相同设备在最大带宽和价格方面有所不同。‎
‎通过总带宽(B),我们指的是通信系统中所选设备的最小带宽,总价格(P)是所有所选设备的价格之和。我们的目标是为每个设备选择一个制造商,以最大限度地提高B / P。‎

输入

‎输入文件的第一行包含单个整数 t(1 ≤ t ≤ 10),即测试用例的数量,后跟每个测试用例的输入数据。每个测试用例都以包含单个整数n(1 ≤n≤100)的行开始,这是通信系统中的设备数量,然后是以下格式的n行:第i行(1≤i≤n)以mi(1≤mi≤100)开头,第i个设备的制造商数量, 后跟同一行中的正整数对 mi,每对分别指示设备的带宽和价格,对应于制造商。‎

输出

‎您的程序应为每个测试用例生成一行,其中包含一个数字,这是测试用例的最大可能 B/P。将输出中的数字舍入为小数点后 3 位数字。‎

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Design of a Graduate Entrance Examination Assistance System Abstract: With the increasing number of graduate school applicants in China, the competition for graduate entrance examinations has become more intense. In this context, a graduate entrance examination assistance system is designed to provide candidates with personalized exam preparation services. The system uses intelligent algorithms to analyze the examination subjects, and provides personalized study plans and question banks for candidates to optimize their study efficiency. The system also provides a platform for candidates to communicate and cooperate with each other, and provides feedback on their learning progress. The system has been tested and evaluated in a graduate entrance examination training institution, and the results show that the system can effectively improve the efficiency of exam preparation and enhance the learning experience of candidates. Introduction: The graduate entrance examination is an important criterion for evaluating the academic level and potential of graduate school applicants. With the increasing number of applicants, the competition for graduate entrance examinations has become more intense. In this context, a graduate entrance examination assistance system is designed to provide candidates with personalized exam preparation services, improve their learning efficiency, and enhance their learning experience. System Design: The graduate entrance examination assistance system is designed based on the client-server model, which consists of a server and a client. The server is responsible for data storage, processing, and communication, while the client is responsible for user interface and interaction. Data Analysis: The system uses intelligent algorithms to analyze the examination subjects, including the distribution of questions, the difficulty level of questions, and the frequency of appearance of different types of questions. Based on the analysis results, the system provides personalized study plans and question banks for candidates to optimize their study efficiency. Study Plan Optimization: The system provides personalized study plans for candidates based on their exam preparation status, learning goals, and available time. The study plan includes a detailed schedule of study tasks, and provides reminders and feedback on the completion of each task. The system also adjusts the study plan dynamically based on the candidate's learning progress. Question Bank Optimization: The system provides a large question bank for candidates to practice, with questions of different types and difficulty levels. The system also analyzes the candidate's learning progress and provides recommendations on the types of questions that need more practice. The system also provides feedback on the candidate's performance in each question, and provides explanations and references for the correct answers. Communication and Cooperation: The system provides a platform for candidates to communicate and cooperate with each other. Candidates can share their study experience, discuss exam preparation strategies, and provide feedback on each other's performance. The system also provides a leaderboard to motivate candidates to improve their learning efficiency and performance. Evaluation: The system has been tested and evaluated in a graduate entrance examination training institution. The results show that the system can effectively improve the efficiency of exam preparation and enhance the learning experience of candidates. Candidates who use the system have shown significant improvement in their exam scores and learning efficiency. Conclusion: The graduate entrance examination assistance system provides personalized exam preparation services for candidates, and improves their learning efficiency and learning experience. The system uses intelligent algorithms to analyze the examination subjects, and provides personalized study plans and question banks for candidates to optimize their study efficiency. The system also provides a platform for candidates to communicate and cooperate with each other, and provides feedback on their learning progress. The system has been tested and evaluated in a graduate entrance examination training institution, and the results show that the system can effectively improve the efficiency of exam preparation and enhance the learning experience of candidates.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值