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

            国产综合精品久久亚洲| 久久精品草草草| 久久青青草视频| 97久久超碰成人精品网站| 香蕉久久一区二区不卡无毒影院| 国产精品亚洲综合专区片高清久久久 | 久久久久久午夜精品| 久久精品国产清自在天天线| 久久精品国产亚洲AV无码娇色 | 欧洲精品久久久av无码电影| 久久国产精品久久国产精品| 国产精品久久久久a影院| 久久综合九色综合精品| 久久97久久97精品免视看| 日韩人妻无码一区二区三区久久| 久久精品成人免费国产片小草| 亚洲av成人无码久久精品| 久久久久久国产精品无码下载| 久久久无码人妻精品无码| 国产精品成人久久久| 久久久久亚洲av毛片大| 人人狠狠综合久久亚洲88| 久久综合香蕉国产蜜臀AV| 色婷婷噜噜久久国产精品12p| 久久综合综合久久97色| 精品国产乱码久久久久久1区2区 | 久久亚洲av无码精品浪潮| 久久国产乱子精品免费女| 精品国际久久久久999波多野| 天堂久久天堂AV色综合| 久久精品青青草原伊人| 久久99热这里只有精品66| 亚洲国产精品无码久久青草| 精品久久久久久无码人妻热| 人人狠狠综合久久亚洲婷婷| 狠狠色丁香婷综合久久| 91精品国产91久久久久久蜜臀| 国产欧美久久一区二区| 色综合色天天久久婷婷基地 | 久久人人爽人人爽人人片AV高清| 2019久久久高清456|