• <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

            亚洲国产美女精品久久久久∴| 久久精品亚洲精品国产欧美| 久久精品国产亚洲77777| jizzjizz国产精品久久| 久久久久亚洲精品无码网址| 2021最新久久久视精品爱| 国产精品久久99| 一本久久免费视频| 国产精品青草久久久久福利99| 久久亚洲sm情趣捆绑调教| 久久久久四虎国产精品| 久久人人爽人人爽人人爽| 久久99精品国产99久久| 7777精品久久久大香线蕉 | …久久精品99久久香蕉国产| 欧美日韩中文字幕久久久不卡| 国产精品久久久久久一区二区三区| 亚洲欧美一级久久精品| 久久精品免费大片国产大片| 成人国内精品久久久久影院| 亚洲AV日韩精品久久久久久| 精品久久久久久无码不卡| 欧美成a人片免费看久久| 久久九九亚洲精品| 高清免费久久午夜精品| 久久精品国产久精国产思思 | 久久AV高清无码| 四虎国产精品成人免费久久| 日韩十八禁一区二区久久| 久久93精品国产91久久综合| 国产激情久久久久影院老熟女免费| 国产成人精品久久二区二区| 久久久青草久久久青草| 91精品国产乱码久久久久久| 99久久久精品免费观看国产| 国内精品久久久久影院一蜜桃| 蜜臀av性久久久久蜜臀aⅴ| 久久久精品国产sm调教网站| 东京热TOKYO综合久久精品| 精品九九久久国内精品| 国产午夜电影久久|