<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
hola, recien estoy estudiando programacion en C++, y me han dejado unos problemas , necesito por favor que ayuden a resolverlos,<BR>
 <BR>
<BR><BR>Gracias,<BR>
<DIV> </DIV><BR>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT color=#000000><FONT face="Times New Roman"><B style="mso-bidi-font-weight: normal"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE">PROBLEMA1</SPAN></B><SPAN lang=ES-PE style="mso-ansi-language: ES-PE">: Un número es palíndromo, si es el mismo cuando se lee de izquierda a derecha y de derecha a izquierda. Ejemplo: 43234.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><FONT size=3><FONT color=#000000><FONT face="Times New Roman">Esto dependerá de la base en la cual esté dado el número. Ejemplo: 17 no es palíndromo en base 10, pero si lo es en base 2. Su representación en base 2 es 17<SPAN style="mso-spacerun: yes">                </SPAN>=10001<o:p></o:p></FONT></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><FONT size=3><FONT color=#000000><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">                                              </SPAN>(2)<o:p></o:p></FONT></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><o:p><FONT face="Times New Roman" color=#000000 size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><FONT size=3><FONT color=#000000><FONT face="Times New Roman">Escribir un programa en C++ que lea un número0<n<50000 en base 10 y determine en que bases B del 2 al 10 es palíndromo.<o:p></o:p></FONT></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><o:p><FONT face="Times New Roman" color=#000000 size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><FONT size=3><FONT color=#000000><FONT face="Times New Roman">Ejemplo:<o:p></o:p></FONT></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><o:p><FONT face="Times New Roman" color=#000000 size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><FONT size=3><FONT color=#000000><FONT face="Times New Roman">17 es palíndromo en base: 2,4<o:p></o:p></FONT></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><FONT size=3><FONT color=#000000><FONT face="Times New Roman">19 no es palíndromo<o:p></o:p></FONT></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><o:p><FONT face="Times New Roman" color=#000000 size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><o:p><FONT face="Times New Roman" color=#000000 size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><o:p><FONT face="Times New Roman" color=#000000 size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT color=#000000><FONT face="Times New Roman"><B style="mso-bidi-font-weight: normal"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE">PROBLEMA 2:</SPAN></B><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"> Se tiene un concurso con varios jueces (3 o más) los cuales califican con puntaje de <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:metricconverter w:st="on" ProductID="0 a">0 a</st1:metricconverter> 20.Para evitar la dispersión de los puntajes siempre ese elimina la calificación mas alta y l a mas baja, y se promedia las restantes. Escriba un programa en C++ que determine el puntaje obtenido por el participante; siendo el primer dato a ingresar el número de jueces, luego los puntajes dados por cada uno de los jueces.<o:p></o:p></SPAN></FONT></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><o:p><FONT face="Times New Roman" color=#000000 size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><FONT size=3><FONT color=#000000><FONT face="Times New Roman">Ejemplo:<o:p></o:p></FONT></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><o:p><FONT face="Times New Roman" color=#000000 size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><FONT size=3><FONT color=#000000><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1">            </SPAN>Número de jueces: 5<o:p></o:p></FONT></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><FONT size=3><FONT color=#000000><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1">            </SPAN>Puntajes entregados: 2,12,18,14,10<o:p></o:p></FONT></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><FONT size=3><FONT color=#000000><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1">            </SPAN>RESULTADO:<o:p></o:p></FONT></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><FONT size=3><FONT color=#000000><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1">            </SPAN>Puntaje obtenido: 12<o:p></o:p></FONT></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><o:p><FONT face="Times New Roman" color=#000000 size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B style="mso-bidi-font-weight: normal"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><FONT size=3><FONT color=#000000><FONT face="Times New Roman">PROBLEMA 3:<o:p></o:p></FONT></FONT></FONT></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B style="mso-bidi-font-weight: normal"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><o:p><FONT face="Times New Roman" color=#000000 size=3> </FONT></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B style="mso-bidi-font-weight: normal"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><FONT size=3><FONT color=#000000><FONT face="Times New Roman">THE PLANE PROBLEM<o:p></o:p></FONT></FONT></FONT></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B style="mso-bidi-font-weight: normal"><SPAN lang=ES-PE style="mso-ansi-language: ES-PE"><o:p><FONT face="Times New Roman" color=#000000 size=3> </FONT></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">Air transportability is concerned with the packing of cargo on aircraft. In order to ensure safe takeoffs and<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">landings, cargo must be packed according to rigorous rules, which can vary from airplane to airplane. Rules<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">for packing aircraft are:<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">All aircraft will have weight limits. They cannot hold more than their weight limit, and for the<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">sake of efficiency, no plane may carry less than 50% of its weight limit.<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol">·</SPAN><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-ansi-language: EN-US; mso-bidi-font-family: Symbol"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">Cargo items are rectangular and have uniform weight distribution. Two adjacent items must<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">be at least <st1:metricconverter w:st="on" ProductID="1 foot">1 foot</st1:metricconverter> apart to allow for tie downs.<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol">·</SPAN><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-ansi-language: EN-US; mso-bidi-font-family: Symbol"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">All aircraft will have a rectangular area for cargo, the cargo hold. No cargo can be placed<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">within one foot of the edge of the cargo hold to allow space to tie it down.<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol">·</SPAN><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-ansi-language: EN-US; mso-bidi-font-family: Symbol"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol">· </SPAN><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">At least 60% of the cargo weight must be put in the front half of the cargo hold.<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">The weight on the left side of the center line must be no more than 5% more or less than the<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">weight on the right hand side of the center line.<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol">·</SPAN><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-ansi-language: EN-US; mso-bidi-font-family: Symbol"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">If a piece of cargo can be moved toward the rear of the plane and still meet the other<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">constraints, then it should be moved toward the rear of the plane because all loading and<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">unloading takes place at the rear of the plane.<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol">·</SPAN><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-ansi-language: EN-US; mso-bidi-font-family: Symbol"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol">· </SPAN><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">To allow for speedy loading and unloading, no plane may hold more than 10 items.<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">You are to write a program to help allocate cargo to aircraft efficiently.<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><B><SPAN lang=EN-US style="FONT-SIZE: 14pt; COLOR: red; FONT-FAMILY: Helvetica-Bold; mso-ansi-language: EN-US; mso-bidi-font-family: Helvetica-Bold"><FONT face="Times New Roman">Input<o:p></o:p></FONT></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">The input will consist of one or more input sets. The first line of each input set will be an integer 0 . p . 20<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">which represents the number of planes to be loaded. There will then be p sets of plane information. Each set of<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">plane information has two lines. The first has a string of 1 to 25 characters representing the name of the<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">aircraft. No two different aircraft in an input set will have the same name. The second line will have four<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">integers, 0 < x . 100, 0 < y . 30, 0 < w . 100000, 0 < c . 20000 where:<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">x represents the length of the cargo hold (from the front of the plane to the rear of the plane)<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">in feet,<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol">·</SPAN><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-ansi-language: EN-US; mso-bidi-font-family: Symbol"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol">· </SPAN><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">y represents the width of the plane (from left to right) in feet,<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol">· </SPAN><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">w represents the weight limit of the plane in pounds,<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol">· </SPAN><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">c represents the cost of the plane in dollars.<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">After the plane information will be the information about the cargo to be loaded. The first line will have a<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">single integer 0 < n . 200, representing the number of pieces of cargo to be loaded. There will then be n sets<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">of cargo item information. Each line of cargo information will consist of 4 integers 0 < i . 1000, 0 < len . 20,<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">0 < wid . 20, 0 < wt . 10000, where:<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">i is a unique value that identifies the cargo item and gives its relative priority (where the<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">higher the value, the more important the item)<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol">·</SPAN><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-ansi-language: EN-US; mso-bidi-font-family: Symbol"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol">· </SPAN><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">len is the length of the item in feet<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol">· </SPAN><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">wid is the width of the item in feet<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol">· </SPAN><SPAN lang=EN-US style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Times-Roman; mso-ansi-language: EN-US; mso-bidi-font-family: Times-Roman"><FONT face="Times New Roman">wt is the weight of the item in pounds<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Helvetica"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Helvetica">TRADUCIDO:<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B style="mso-bidi-font-weight: normal"><SPAN style="COLOR: black; FONT-FAMILY: 'Courier New'"><FONT size=3>EL PROBLEMA DEL AEROPLANO<o:p></o:p></FONT></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="COLOR: black; FONT-FAMILY: 'Courier New'"><FONT size=3>De transporte aéreo se refiere a los embalajes de la carga en los aviones. Con el fin de garantizar la seguridad en los despegues y <BR>los desembarques, la carga debe ser de acuerdo con rigurosas normas, que pueden variar de un avión a avión. Reglas <BR>para el embalaje de las aeronaves son las siguientes: <BR>Todas las aeronaves tendrán límites de peso. No pueden tener más de su límite de peso, y para la <BR>aras de la eficiencia, de plano no pueden llevar menos de un 50% de su límite de peso. <BR><BR>Cargo elementos son rectangulares y tienen un peso uniforme distribución. Dos elementos adyacentes deben <BR>ser por lo menos <st1:metricconverter w:st="on" ProductID="1 pie">1 pie</st1:metricconverter> de separación para permitir el empate en las bajadas. <BR><BR>Todas las aeronaves tendrán un área rectangular de la carga, la bodega de carga. De carga no se pueden colocar <BR>dentro de un pie del borde de la bodega de carga para permitir espacio para que el empate. <BR><BR>Al menos el 60% de la carga de peso se debe poner en la primera mitad de la bodega. <BR>El peso en el lado izquierdo de la línea central debe haber más de un 5% más o menos de la <BR>peso en el lado derecho de la línea central. <BR><BR>Si una pieza de la carga se puede mover hacia la parte posterior del avión y aún cumplir con el resto de <BR>limitaciones, entonces debería ser movido hacia la parte posterior del avión de carga y porque todos los <BR>la descarga se lleva a cabo en la parte trasera del avión. <BR><BR>Para permitir la rápida carga y descarga, de plano no podrá celebrar más de 10 elementos. <BR>Usted está para escribir un programa para ayudar a asignar de manera eficiente a las aeronaves de carga. <BR>Entrada <BR>La entrada constará de uno o más conjuntos de entrada. La primera línea de cada entrada será un conjunto entero 0?? p? 20 <BR>lo que representa el número de aviones a ser cargada. A continuación tendrá lugar p conjuntos de plano la información. Cada conjunto de <BR>plano de la información tiene dos líneas. La primera tiene una cadena de <st1:metricconverter w:st="on" ProductID="1 a">1 a</st1:metricconverter> 25 caracteres que representan el nombre de la <BR>aeronaves. No hay dos diferentes aeronaves en un conjunto de entrada tendrá el mismo nombre. La segunda línea tendrá cuatro <BR>enteros, 0 <x? 100, 0 <y? 30, 0 <w? 100000, 0 <c? 20000, cuando: <BR>x representa la longitud de la bodega de carga (de la parte delantera del avión a la parte trasera del avión) <BR>en los pies, <BR><BR>Y representa el ancho del plano (de izquierda a derecha) en los pies, <BR>W representa el límite de peso del avión en libras, <BR>C representa el costo del avión en dólares. <BR>Después de que el avión será la información sobre la carga de información a ser cargada. La primera línea tendrá un <BR>único entero 0 <n? 200, que representan el número de piezas de la carga a ser cargada. A continuación tendrá lugar n conjuntos <BR>tema de la carga de información. Cada línea de información sobre la carga consistirá de 4 enteros 0 <i? 1000, 0 <len? 20, <BR>0 <WID? 20, 0 <peso? 10000, cuando: <BR>i es un valor único que identifica el tema de carga y le da su prioridad relativa (en el que el <BR>más alto sea el valor, el más importante el tema) <BR><BR>Len la longitud del tema en los pies <BR>WID es la anchura del tema en los pies <BR>De peso es el peso del tema en libras<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Helvetica"><o:p> </o:p></SPAN></P><BR><br /><hr />Personaliza tu nuevo Windows Live y   <a href='http://www.windowslive.es ' target='_new'>hazlo único</a></body>
</html>