• <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这里只有精品国产| 中文字幕无码久久精品青草 | 区久久AAA片69亚洲| 亚洲伊人久久综合中文成人网 | 中文字幕久久波多野结衣av| 亚洲精品午夜国产va久久| 国产精品久久久久久福利漫画| 久久综合九色综合精品| 伊人久久大香线蕉亚洲五月天| 久久综合亚洲欧美成人| 精品国产日韩久久亚洲| 国产免费久久精品99久久| 国内精品久久久久久99蜜桃| 国产亚洲精品自在久久| 一级女性全黄久久生活片免费 | 精品久久久久一区二区三区 | 青草国产精品久久久久久| 欧美伊人久久大香线蕉综合 | 久久本道久久综合伊人| 热re99久久精品国99热| 久久久久久国产精品美女| 精品国产婷婷久久久| 久久这里只有精品18| 国内精品久久国产大陆| 国产精品久久久亚洲| 91精品国产91久久久久福利| 欧美激情一区二区久久久| 麻豆久久久9性大片| 亚洲色欲久久久综合网东京热| 午夜精品久久久久久影视riav| 欧美日韩久久中文字幕| 久久成人精品视频| 偷偷做久久久久网站| 亚洲精品乱码久久久久久| 狠狠久久亚洲欧美专区| 亚洲精品高清一二区久久| 久久精品国产亚洲AV香蕉| 中文成人无码精品久久久不卡|