• <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人妻| 狠狠人妻久久久久久综合| 久久久久久久久66精品片| 亚洲精品午夜国产VA久久成人| 久久精品国产亚洲欧美| 日本久久久久久久久久| 久久人人爽人人爽人人AV东京热| 久久免费国产精品一区二区| 日本精品久久久久影院日本| 国产精品18久久久久久vr| 四虎国产精品成人免费久久| 99久久免费国产精精品| 模特私拍国产精品久久| 99久久99久久精品国产片| 亚洲精品午夜国产VA久久成人 | 久久久久亚洲AV无码专区体验| 9191精品国产免费久久| 亚洲精品乱码久久久久久久久久久久| 久久国产免费观看精品| 久久99国产综合精品女同| 手机看片久久高清国产日韩| 久久久精品免费国产四虎| 无码AV中文字幕久久专区| 少妇久久久久久被弄到高潮 | 国产成人久久精品二区三区| 热99RE久久精品这里都是精品免费 | 久久精品国产国产精品四凭| 性做久久久久久久| 国产午夜福利精品久久| 97久久久久人妻精品专区| 综合网日日天干夜夜久久| 久久久精品国产免大香伊| 欧美成a人片免费看久久| 久久精品无码av| 久久精品国产精品亚洲| 久久综合狠狠综合久久97色| 久久国产高清一区二区三区| 久久99精品久久久久久不卡| 国产巨作麻豆欧美亚洲综合久久|