SP18637 LAWRENCE - Lawrence of Arabia

Description

.center { margin-right: auto; margin-left: auto; } .center-text { text-align: center ! important; } .example-table { margin-top: 10px; text-align: left; width: 100%; } .example-table td { max-width: 0; word-wrap: break-word; vertical-align: top; } .example-table .vertical-spacer { height: 5px; } .inline { display: inline; } .section { margin-top: 19px; margin-bottom:19px; } .section:first-child, .section:first-child > h3:first-child { margin-top: 0; } .paragraph { margin-top: 10px; margin-bottom: 10px; text-align: left; } .paragraph ul, .paragraph pre { margin-top: 3px; margin-bottom: 3px; } ul.padded > li, ol.padded > li { margin-bottom: 13px; } ul.padded > li:last-child, ol.padded > li:last-child { margin-bottom: 0; } pre { tab-size: 4; } .billboard { line-height: 1em; outline: solid 1px black; }

Input Format

The first line is the number of outposts, 0 < P

Output Format

The minimum possible stategic value of the railroad after Lawrence's attack.