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

            精品久久久久久亚洲精品| 66精品综合久久久久久久| 亚洲αv久久久噜噜噜噜噜| 久久久无码人妻精品无码| 99久久99久久精品免费看蜜桃 | 久久国产免费直播| 无码人妻少妇久久中文字幕| 久久精品国产免费观看| 久久久久久免费一区二区三区| 久久久久久av无码免费看大片| 久久亚洲精品国产精品| 国产精品欧美久久久久无广告| 97精品依人久久久大香线蕉97| 国产精自产拍久久久久久蜜| 亚洲精品无码久久久久sm| 国产99久久久久久免费看| 亚洲AV无码久久精品蜜桃| 久久精品无码一区二区三区免费| 久久精品无码专区免费东京热| 欧美大战日韩91综合一区婷婷久久青草| 亚洲伊人久久精品影院| 国产高潮国产高潮久久久91| 精品久久8x国产免费观看| 久久午夜免费视频| 亚洲国产一成久久精品国产成人综合| 久久久噜噜噜久久中文福利| 日韩人妻无码一区二区三区久久99 | 国产精品va久久久久久久| 国产成年无码久久久久毛片| 中文成人久久久久影院免费观看| 国内精品久久久久久野外| 午夜人妻久久久久久久久| 一级a性色生活片久久无| 久久青青草原亚洲av无码| 久久国产免费直播| 亚洲午夜无码AV毛片久久| 亚洲人成无码久久电影网站| 99精品国产免费久久久久久下载 | 色综合久久夜色精品国产| 久久这里只有精品视频99| 四虎影视久久久免费观看|