青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

posts - 74,  comments - 33,  trackbacks - 0
A Plug for UNIX
Time Limit: 1000MS Memory Limit: 65536K
Total Submissions: 5177 Accepted: 1628

Description

You are in charge of setting up the press room for the inaugural meeting of the United Nations Internet eXecutive (UNIX), which has an international mandate to make the free flow of information and ideas on the Internet as cumbersome and bureaucratic as possible.
Since the room was designed to accommodate reporters and journalists from around the world, it is equipped with electrical receptacles to suit the different shapes of plugs and voltages used by appliances in all of the countries that existed when the room was built. Unfortunately, the room was built many years ago when reporters used very few electric and electronic devices and is equipped with only one receptacle of each type. These days, like everyone else, reporters require many such devices to do their jobs: laptops, cell phones, tape recorders, pagers, coffee pots, microwave ovens, blow dryers, curling
irons, tooth brushes, etc. Naturally, many of these devices can operate on batteries, but since the meeting is likely to be long and tedious, you want to be able to plug in as many as you can.
Before the meeting begins, you gather up all the devices that the reporters would like to use, and attempt to set them up. You notice that some of the devices use plugs for which there is no receptacle. You wonder if these devices are from countries that didn't exist when the room was built. For some receptacles, there are several devices that use the corresponding plug. For other receptacles, there are no devices that use the corresponding plug.
In order to try to solve the problem you visit a nearby parts supply store. The store sells adapters that allow one type of plug to be used in a different type of outlet. Moreover, adapters are allowed to be plugged into other adapters. The store does not have adapters for all possible combinations of plugs and receptacles, but there is essentially an unlimited supply of the ones they do have.

Input

The input will consist of one case. The first line contains a single positive integer n (1 <= n <= 100) indicating the number of receptacles in the room. The next n lines list the receptacle types found in the room. Each receptacle type consists of a string of at most 24 alphanumeric characters. The next line contains a single positive integer m (1 <= m <= 100) indicating the number of devices you would like to plug in. Each of the next m lines lists the name of a device followed by the type of plug it uses (which is identical to the type of receptacle it requires). A device name is a string of at most 24 alphanumeric
characters. No two devices will have exactly the same name. The plug type is separated from the device name by a space. The next line contains a single positive integer k (1 <= k <= 100) indicating the number of different varieties of adapters that are available. Each of the next k lines describes a variety of adapter, giving the type of receptacle provided by the adapter, followed by a space, followed by the type of plug.

Output

A line containing a single non-negative integer indicating the smallest number of devices that cannot be plugged in.

Sample Input

4 
A 
B 
C 
D 
5 
laptop B 
phone C 
pager B 
clock B 
comb X 
3 
B X 
X A 
X D 

Sample Output

1
一個網路流的問題,如果說想通了就簡單了,我實現的時候,用了4xxms感覺很是郁悶,隨后想通了0ms通過的方法也懶得寫了
記下就行了沒主要部分是最大流,或者用二分匹配實現都行,代碼很爛,不值得發出來
posted on 2009-02-24 21:52 KNIGHT 閱讀(196) 評論(0)  編輯 收藏 引用
<2009年1月>
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567

常用鏈接

留言簿(8)

隨筆檔案

文章檔案

Friends

OJ

搜索

  •  

最新評論

閱讀排行榜

評論排行榜

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            国产精品久久久一区二区三区| 久久米奇亚洲| 亚洲美女精品一区| 国产欧美日本一区二区三区| 欧美一级理论片| 亚洲你懂的在线视频| 亚洲一区视频在线| 欧美一级二区| 久久综合给合久久狠狠狠97色69| 欧美在线免费观看视频| 久久精品国产免费观看| 欧美成人自拍视频| 亚洲精品一区二区三区福利| 亚洲一级黄色| 久久精品一本| 欧美日韩精品综合| 国产精品久久999| 精品91久久久久| 一本色道精品久久一区二区三区| 午夜欧美精品久久久久久久| 欧美粗暴jizz性欧美20| 一本色道久久综合亚洲精品婷婷| 亚洲午夜在线观看视频在线| 久久久久久夜| 欧美日韩天天操| 狠狠色狠狠色综合系列| 一区二区三区欧美| 久久先锋资源| 亚洲一区二区三| 欧美成黄导航| 韩日精品视频| 亚洲欧美国产制服动漫| 免费欧美视频| 欧美一级久久| 欧美性猛片xxxx免费看久爱| 亚洲激情影视| 美女亚洲精品| 欧美在线视频日韩| 欧美午夜久久久| aⅴ色国产欧美| 欧美96在线丨欧| 亚洲欧美日韩另类精品一区二区三区| 欧美大片免费久久精品三p| 久久精品二区三区| 欧美日韩一区在线观看| 在线观看成人一级片| 午夜影院日韩| 一本色道久久综合亚洲精品小说| 久久不射网站| 国产一区二区三区久久悠悠色av| 一区二区免费看| 欧美激情日韩| 久久人人爽国产| 国产一区激情| 久久精品国产99国产精品| 亚洲一区二区三区四区中文| 欧美高清在线| 亚洲欧洲一区二区在线观看 | 国产精品永久免费视频| 亚洲欧洲久久| 亚洲大胆视频| 午夜视黄欧洲亚洲| 国产啪精品视频| 欧美在线国产精品| 亚洲综合丁香| 国产欧美日韩在线视频| 欧美一区二视频在线免费观看| 一区二区三区 在线观看视| 欧美日韩国产影院| 亚洲素人在线| 亚洲欧美日韩国产成人| 国产精品高潮呻吟久久av黑人| 亚洲欧美电影院| 亚洲欧美精品| 伊人久久亚洲美女图片| 免费的成人av| 嫩模写真一区二区三区三州| 亚洲看片一区| 亚洲午夜精品福利| 国模套图日韩精品一区二区| 免费试看一区| 欧美久久久久久蜜桃| 亚洲免费婷婷| 久久久久久久久久久成人| 亚洲毛片在线看| 性8sex亚洲区入口| 最新国产拍偷乱拍精品| 一本色道久久综合狠狠躁篇怎么玩 | 亚洲欧美综合v| 久久成年人视频| 亚洲欧洲久久| 一区二区激情小说| 激情欧美一区二区| 亚洲国产精品福利| 国产精品嫩草影院av蜜臀| 欧美阿v一级看视频| 欧美日韩1080p| 久久精品国产清自在天天线| 美日韩精品免费观看视频| 亚洲一区三区在线观看| 久久久99爱| 午夜日韩在线| 欧美成人午夜激情视频| 亚洲欧美日韩精品综合在线观看| 久久综合狠狠综合久久综青草| 亚洲最新色图| 久久午夜精品| 久久精品99| 国产精品伦理| 99国产精品久久久久久久成人热| 国产伪娘ts一区| 在线视频欧美精品| 亚洲精品日韩欧美| 久久精品夜色噜噜亚洲a∨ | 一本一本a久久| 亚洲国产精品一区二区尤物区| 亚洲影院在线| 一本色道久久88亚洲综合88| 久久亚洲综合网| 久久久久久69| 国产日韩欧美另类| 亚洲天堂网在线观看| 在线综合欧美| 欧美日韩国产另类不卡| 欧美激情第六页| 黄色成人91| 欧美一区二区在线视频| 香蕉乱码成人久久天堂爱免费| 美女亚洲精品| 亚洲第一在线| 亚洲国内在线| 欧美成在线观看| 亚洲国产日韩欧美在线动漫| 亚洲欧洲精品一区二区三区波多野1战4 | 欧美一区激情| 国产精品日韩高清| 亚洲视频狠狠| 欧美一区1区三区3区公司| 欧美午夜国产| 亚洲一区三区在线观看| 亚洲欧美精品| 国产欧美视频一区二区| 亚洲欧美国产日韩天堂区| 欧美一区二区视频免费观看| 国产精品亚洲综合色区韩国| 亚洲午夜精品一区二区三区他趣 | 老司机午夜精品视频| 亚洲高清网站| 欧美精品一区二区三区一线天视频| 亚洲韩国日本中文字幕| 亚洲巨乳在线| 欧美日韩精品免费观看视频完整| 亚洲精品美女在线观看播放| 在线一区日本视频| 国产欧美大片| 久久久综合网站| 亚洲国产高清在线观看视频| 一区二区三区欧美成人| 国产农村妇女毛片精品久久莱园子 | 免费成人高清| 亚洲美女中文字幕| 欧美性视频网站| 欧美在线黄色| 亚洲黄色一区二区三区| 亚洲视频久久| 国产一区二区三区免费不卡| 免费黄网站欧美| 亚洲色在线视频| 老牛国产精品一区的观看方式| 亚洲区欧美区| 国产伦精品一区二区三区高清版 | 久久免费视频网| 日韩视频不卡中文| 国产精品麻豆va在线播放| 久久精品青青大伊人av| 欧美视频在线播放| 亚洲日本电影在线| 国产精品久久久久一区二区三区共 | 久久久久国产精品一区二区| 亚洲日本理论电影| 国产精品尤物| 欧美理论电影网| 久久一区视频| 午夜精品亚洲| 一本大道av伊人久久综合| 牛夜精品久久久久久久99黑人| 亚洲欧美不卡| 亚洲日本乱码在线观看| 激情一区二区| 国产欧美韩国高清| 欧美四级伦理在线| 欧美激情一区二区久久久| 久久久久免费| 欧美在线视频观看免费网站| 亚洲专区在线视频| 亚洲视频综合| 在线视频精品一区| 亚洲大胆人体视频| 免费日韩精品中文字幕视频在线| 久久久精品午夜少妇|