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

            久久国产乱子伦精品免费午夜| 亚洲欧美成人综合久久久| 2021精品国产综合久久| 日本精品久久久久中文字幕| 久久久久人妻精品一区三寸蜜桃| 久久中文字幕精品| 99久久无码一区人妻a黑| 精品久久久久久无码中文野结衣| 欧美麻豆久久久久久中文| 伊人久久精品无码二区麻豆| 亚洲午夜久久久精品影院| 久久亚洲精品国产亚洲老地址 | 国产精品丝袜久久久久久不卡| 久久国产精品二国产精品| 狠狠久久综合伊人不卡| 色综合久久综合中文综合网| 久久大香香蕉国产| 性做久久久久久免费观看| 精品久久久久久久无码| 亚洲国产精品成人久久蜜臀| 国产午夜精品久久久久免费视| 国内精品伊人久久久久影院对白| 久久精品日日躁夜夜躁欧美 | 久久天天躁狠狠躁夜夜2020一| 91精品国产乱码久久久久久| 四虎亚洲国产成人久久精品| 91久久精品无码一区二区毛片| 99久久精品国产麻豆| 精产国品久久一二三产区区别| 久久艹国产| 久久久久香蕉视频| 国产精品久久久99| 久久亚洲天堂| 久久久久久国产a免费观看不卡| 国产精品免费看久久久| 精品国产乱码久久久久久郑州公司 | 中文字幕日本人妻久久久免费| 久久亚洲AV永久无码精品| 久久人人超碰精品CAOPOREN| 欧美粉嫩小泬久久久久久久 | 精品久久久久久国产潘金莲|