题目求翻译
答案:2 悬赏:70 手机版
解决时间 2021-01-31 18:06
- 提问者网友:我没有何以琛的痴心不悔
- 2021-01-31 14:46
http://acm.hdu.edu.cn/showproblem.php?pid=1950
最佳答案
- 五星知识达人网友:举杯邀酒敬孤独
- 2021-01-31 15:46
衔接信号
Online Judge在线判断 Online Exercise在线运动 Online Teaching在线教学 Online Contests在线比赛 Exercise Author锻炼作者
F.A.QF.A.Q
Hand In Hand携手
Online Acmers在线Acmers
Forum |论坛|Discuss讨论
Statistical Charts统计图表
Problem Archive问题档案
Realtime Judge Status实时判断状况
Authors Ranklist作者Ranklist
C/C++/Java ExamsC / c++ / Java的考试
ACM StepsACM步骤
Go to Job去工作
Contest LiveCast比赛LiveCast
ICPC@ChinaICPC@China
STD Contests性病竞赛
VIP ContestsVIP竞赛
Virtual Contests虚拟比赛
DIY |DIY |Web-DIYWeb-DIYbetaβ
Recent Contests最近的比赛
Author ID作者ID
Password密码
Register new ID注册新身份证
2012暑期PAT(Programming Ability Test)培训正式启动报名~2012暑期PAT(编程能力测试)培训正式启动报名~
Bridging signals衔接信号
Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)期限:5000/1000 MS(Java /其它)内存限制:65536/32768 K(Java /其它)
Total Submission(s): 308 Accepted Submission(s): 179总提交(s):308接受提交(s):179 -
Problem Description问题描述
'Oh no, they've done it again', cries the chief designer at the Waferland chip factory. “哦,不,他们已经干了一次”,而在Waferland首席设计师芯片工厂。Once more the routing designers have screwed up completely, making the signals on the chip connecting the ports of two functional blocks cross each other all over the place. 再一次路由设计完全搞砸了,使信号连接端口芯片上的两个功能块相互交叉的所有地方。At this late stage of the process, it is too在这麽晚的阶段的过程中,它也是
expensive to redo the routing. 昂贵的重新编排路由。Instead, the engineers have to bridge the signals, using the third dimension, so that no two signals cross. 取而代之的是,工程师们已经弥合信号,利用三维空间,所以没有两个电信号。However, bridging is a complicated operation, and thus it is desirable to bridge as few signals as possible. 然而,桥是一个复杂的操作,因而它是可取的桥梁,尽可能少的信号。The call for a computer program that finds the maximum number of signals which may be connected on the silicon surface without rossing each other, is imminent. 呼唤一个计算机程序,它能够发现的最大的数字信号,可连接到在硅表面没有rossing对方,迫在眉睫。Bearing in mind that there may be housands of signal ports at the boundary of a functional block, the problem asks quite a lot of the programmer. 牢记可能有housands边界上的信号端口的功能模块,这个问题问很多程序员。Are you up to the task?你明白自己的任务了吗?
Figure 1. 图1。To the left: The two blocks' ports and their signal mapping (4,2,6,3,1,5). 左:两个街区的港口和信号映射(4、6、3、2、1、5)。To the right: At most three signals may be routed on the silicon surface without crossing each other. 向右:顶多三个信号可以击败在硅表面无交叉。The dashed signals must be bridged.虚线信号必须被弥合。
A typical situation is schematically depicted in figure 1. 一个典型的情况是schematically如图1。The ports of the two functional blocks are numbered from 1 to p, from top to bottom. 两个功能的港口块数从1到p,从头到尾。The signal mapping is described by a permutation of the numbers 1 to p in the form of a list of p unique numbers in the range 1 to p, in which the i:th number pecifies which port on the right side should be connected to the i:th port on the left side.信号映射是被一个排列的数字1到p的形式,一系列独特的数字p范围1对磷,我:日pecifies哪个码头数目在右边应连接到我:日港口左边。
Two signals cross if and only if the straight lines connecting the two ports of each pair do.如果两个电信号,只是如果直线连接两个港口的每一对。
Input输入
On the first line of the input, there is a single positive integer n, telling the number of test scenarios to follow. 在第一线的输入,有一个正整数n,对大量的测试场景跟随。Each test scenario begins with a line containing a single positive integer p<40000, the number of ports on the two functional blocks. 每个测试场景始于一行包含一个正整数p < 40000年,这个数字在两个港口功能块。Then follow p lines, describing the signal mapping: On the i:th line is the port number of the block on the right side which should be connected to the i:th port of the block on the left side.然后跟p线,描述信号映射:在我:日线端口号区块在右边,应连接到我:日港口区块的左侧。
Output输出
For each test scenario, output one line containing the maximum number of signals which may be routed on the silicon surface without crossing each other.对于每个测试场景中,输出一行包含最高信号数可以击败在硅表面无交叉。
Online Judge在线判断 Online Exercise在线运动 Online Teaching在线教学 Online Contests在线比赛 Exercise Author锻炼作者
F.A.QF.A.Q
Hand In Hand携手
Online Acmers在线Acmers
Forum |论坛|Discuss讨论
Statistical Charts统计图表
Problem Archive问题档案
Realtime Judge Status实时判断状况
Authors Ranklist作者Ranklist
C/C++/Java ExamsC / c++ / Java的考试
ACM StepsACM步骤
Go to Job去工作
Contest LiveCast比赛LiveCast
ICPC@ChinaICPC@China
STD Contests性病竞赛
VIP ContestsVIP竞赛
Virtual Contests虚拟比赛
DIY |DIY |Web-DIYWeb-DIYbetaβ
Recent Contests最近的比赛
Author ID作者ID
Password密码
Register new ID注册新身份证
2012暑期PAT(Programming Ability Test)培训正式启动报名~2012暑期PAT(编程能力测试)培训正式启动报名~
Bridging signals衔接信号
Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)期限:5000/1000 MS(Java /其它)内存限制:65536/32768 K(Java /其它)
Total Submission(s): 308 Accepted Submission(s): 179总提交(s):308接受提交(s):179 -
Problem Description问题描述
'Oh no, they've done it again', cries the chief designer at the Waferland chip factory. “哦,不,他们已经干了一次”,而在Waferland首席设计师芯片工厂。Once more the routing designers have screwed up completely, making the signals on the chip connecting the ports of two functional blocks cross each other all over the place. 再一次路由设计完全搞砸了,使信号连接端口芯片上的两个功能块相互交叉的所有地方。At this late stage of the process, it is too在这麽晚的阶段的过程中,它也是
expensive to redo the routing. 昂贵的重新编排路由。Instead, the engineers have to bridge the signals, using the third dimension, so that no two signals cross. 取而代之的是,工程师们已经弥合信号,利用三维空间,所以没有两个电信号。However, bridging is a complicated operation, and thus it is desirable to bridge as few signals as possible. 然而,桥是一个复杂的操作,因而它是可取的桥梁,尽可能少的信号。The call for a computer program that finds the maximum number of signals which may be connected on the silicon surface without rossing each other, is imminent. 呼唤一个计算机程序,它能够发现的最大的数字信号,可连接到在硅表面没有rossing对方,迫在眉睫。Bearing in mind that there may be housands of signal ports at the boundary of a functional block, the problem asks quite a lot of the programmer. 牢记可能有housands边界上的信号端口的功能模块,这个问题问很多程序员。Are you up to the task?你明白自己的任务了吗?
Figure 1. 图1。To the left: The two blocks' ports and their signal mapping (4,2,6,3,1,5). 左:两个街区的港口和信号映射(4、6、3、2、1、5)。To the right: At most three signals may be routed on the silicon surface without crossing each other. 向右:顶多三个信号可以击败在硅表面无交叉。The dashed signals must be bridged.虚线信号必须被弥合。
A typical situation is schematically depicted in figure 1. 一个典型的情况是schematically如图1。The ports of the two functional blocks are numbered from 1 to p, from top to bottom. 两个功能的港口块数从1到p,从头到尾。The signal mapping is described by a permutation of the numbers 1 to p in the form of a list of p unique numbers in the range 1 to p, in which the i:th number pecifies which port on the right side should be connected to the i:th port on the left side.信号映射是被一个排列的数字1到p的形式,一系列独特的数字p范围1对磷,我:日pecifies哪个码头数目在右边应连接到我:日港口左边。
Two signals cross if and only if the straight lines connecting the two ports of each pair do.如果两个电信号,只是如果直线连接两个港口的每一对。
Input输入
On the first line of the input, there is a single positive integer n, telling the number of test scenarios to follow. 在第一线的输入,有一个正整数n,对大量的测试场景跟随。Each test scenario begins with a line containing a single positive integer p<40000, the number of ports on the two functional blocks. 每个测试场景始于一行包含一个正整数p < 40000年,这个数字在两个港口功能块。Then follow p lines, describing the signal mapping: On the i:th line is the port number of the block on the right side which should be connected to the i:th port of the block on the left side.然后跟p线,描述信号映射:在我:日线端口号区块在右边,应连接到我:日港口区块的左侧。
Output输出
For each test scenario, output one line containing the maximum number of signals which may be routed on the silicon surface without crossing each other.对于每个测试场景中,输出一行包含最高信号数可以击败在硅表面无交叉。
全部回答
- 1楼网友:北方的南先生
- 2021-01-31 16:50
the weather becomes hotter and hotter, some students want to sleep when they are taking class. for instance, i would sleep during the class time sometimes. but the time is not too long. i have found a way to overcome the sleep, which is to look at teachers' eyes when you want to sleep, and to listen to the teacher carefully. then you will never want to fall asleep. if it doesn;t work, slap yourself. 人工翻译
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯