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

            内射无码专区久久亚洲| 99国产欧美精品久久久蜜芽 | 亚洲精品无码久久千人斩| 久久99精品久久久大学生| 久久天天躁狠狠躁夜夜躁2O2O| 国产亚洲美女精品久久久久狼| 99热成人精品免费久久| 久久妇女高潮几次MBA| 国产精品内射久久久久欢欢| 久久人人添人人爽添人人片牛牛 | 久久综合久久综合亚洲| 久久久无码精品亚洲日韩按摩| 久久99精品久久久久久野外| 亚洲欧美日韩久久精品第一区| 久久精品国产99国产精偷| 热久久视久久精品18| 久久国产精品-国产精品| 国内精品九九久久精品| 国产精品欧美亚洲韩国日本久久| 少妇内射兰兰久久| 久久午夜免费视频| 久久精品亚洲乱码伦伦中文| 久久线看观看精品香蕉国产| 无遮挡粉嫩小泬久久久久久久| 一本大道久久东京热无码AV| 国产真实乱对白精彩久久| 久久99精品久久久久久| 国内精品伊人久久久影院| 久久本道综合久久伊人| 人人狠狠综合久久亚洲婷婷| 波多野结衣中文字幕久久| 亚洲中文字幕久久精品无码APP| 久久人人爽人人爽AV片| 国内精品久久久久久久亚洲| 9久久9久久精品| 久久夜色精品国产亚洲| 色综合合久久天天综合绕视看| 精品久久久久久亚洲| 一本大道加勒比久久综合| 狠狠久久亚洲欧美专区| 久久亚洲国产中v天仙www|