• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            One fight one


            Problem Description
            Lv Bu and his soldiers are facing a cruel war——Cao Cao had his best generals just miles away.

            There’s little time , but Lv Bu is unaware of how to arrange his warriors , what he know is that he have n brave generals while Cao Cao has m , and he has k fights to choose from , he’d like to make all his n warriors participate in the battle but get the least injuries . Lv Bu is happy because there is always a good solution . So , now is your task to tell Lv Bu the least injuries his troop would get.
            No one could take part in two fights.

            Input
            Multiple cases. For each case ,there are three integers in the first line , namely n,m (1<=n<=m<=200)and k (n<=k<=m*n).
            The next k lines are the information about k possible fights , for each line are two strings (no more than 20 characters ) and an integer. The first string indicates Lv Bu’s general and the second , of course , Cao Cao’s , and the integer is the injury Lv Bu’s general would get if this fight were chosen.

            Output
            One integer , the least injuries Lv Bu’s generals would get.

            Sample Input
            2 3 5 LvBu ZhangFei 6 LvBu GuanYu 5 LvBu XuChu 4 ZhangLiao ZhangFei 8 ZhangLiao XuChu 3
            Sample Output
            8
            Author
            shǎ崽
            Source

            One Fight One KM算法

            posts - 3, comments - 1, trackbacks - 0, articles - 16

            Copyright © lenohoo

            久久www免费人成精品香蕉| 国产精品久久影院| 久久精品综合网| 亚洲va久久久噜噜噜久久狠狠| 亚洲熟妇无码另类久久久| 久久九九亚洲精品| 天天影视色香欲综合久久| 亚洲国产精品成人久久| 国产三级精品久久| 亚洲va久久久噜噜噜久久| 国产精品狼人久久久久影院| 2021国内久久精品| 国产精品无码久久久久| 欧美熟妇另类久久久久久不卡 | 亚洲成色WWW久久网站| 国产精品久久一区二区三区| 亚洲日本va午夜中文字幕久久 | 精品久久久久久国产| 亚洲国产成人久久综合一 | 国产精品99久久99久久久| 久久久久国产亚洲AV麻豆| 国产91久久精品一区二区| 色婷婷狠狠久久综合五月| 香蕉久久一区二区不卡无毒影院| 久久受www免费人成_看片中文| 潮喷大喷水系列无码久久精品| 久久国内免费视频| 99久久精品久久久久久清纯 | 国产精品日韩欧美久久综合| 欧美牲交A欧牲交aⅴ久久| 伊人久久精品无码av一区| 一本综合久久国产二区| 热综合一本伊人久久精品 | 亚洲性久久久影院| 久久国产精品波多野结衣AV| 99久久精品国产高清一区二区 | 欧美亚洲日本久久精品| 久久精品国产99久久久香蕉| 久久精品国产只有精品2020| 丰满少妇高潮惨叫久久久| 狠狠久久亚洲欧美专区|