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

posts - 74,  comments - 33,  trackbacks - 0
Friendship
Time Limit: 2000MS Memory Limit: 20000K
Total Submissions: 1403 Accepted: 294

Description

In modern society, each person has his own friends. Since all the people are very busy, they communicate with each other only by phone. You can assume that people A can keep in touch with people B, only if
1. A knows B's phone number, or
2. A knows people C's phone number and C can keep in touch with B.
It's assured that if people A knows people B's number, B will also know A's number.

Sometimes, someone may meet something bad which makes him lose touch with all the others. For example, he may lose his phone number book and change his phone number at the same time.

In this problem, you will know the relations between every two among N people. To make it easy, we number these N people by 1,2,...,N. Given two special people with the number S and T, when some people meet bad things, S may lose touch with T. Your job is to compute the minimal number of people that can make this situation happen. It is supposed that bad thing will never happen on S or T.

Input

The first line of the input contains three integers N (2<=N<=200), S and T ( 1 <= S, T <= N , and S is not equal to T).Each of the following N lines contains N integers. If i knows j's number, then the j-th number in the (i+1)-th line will be 1, otherwise the number will be 0.

You can assume that the number of 1s will not exceed 5000 in the input.

Output

If there is no way to make A lose touch with B, print "NO ANSWER!" in a single line. Otherwise, the first line contains a single number t, which is the minimal number you have got, and if t is not zero, the second line is needed, which contains t integers in ascending order that indicate the number of people who meet bad things. The integers are separated by a single space.

If there is more than one solution, we give every solution a score, and output the solution with the minimal score. We can compute the score of a solution in the following way: assume a solution is A1, A2, ..., At (1 <= A1 < A2 <...< At <=N ), the score will be (A1-1)*N^t+(A2-1)*N^(t-1)+...+(At-1)*N. The input will assure that there won't be two solutions with the minimal score.

Sample Input

3 1 3
1 1 0
1 1 1
0 1 1

Sample Output

1
2

Source

POJ Monthly
這道題目,不知道怎么搞的我的最大流一直是超時,有點郁悶,TLM了
郁悶,代碼 ac后更新
posted on 2009-02-26 09:46 KNIGHT 閱讀(100) 評論(0)  編輯 收藏 引用

只有注冊用戶登錄后才能發表評論。
網站導航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


<2009年4月>
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789

常用鏈接

留言簿(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>
            亚洲一区二区三区午夜| 亚洲图片欧美日产| 欧美国产日韩视频| 老色鬼精品视频在线观看播放| 性欧美videos另类喷潮| 午夜激情综合网| 久久精品人人做人人爽| 老牛影视一区二区三区| 欧美国产三区| 国产精品jvid在线观看蜜臀| 国产精品青草久久| 国产一区二区三区丝袜| 在线观看亚洲a| 亚洲精品人人| 午夜精品久久久久久久| 欧美专区一区二区三区| 另类天堂视频在线观看| 91久久夜色精品国产九色| 亚洲国产精品va| 艳女tv在线观看国产一区| 一本色道久久精品| 亚洲影视中文字幕| 久久综合伊人| 日韩一级不卡| 久久亚洲一区二区| 欧美偷拍另类| 伊甸园精品99久久久久久| 日韩午夜在线电影| 久久久久久久波多野高潮日日| 亚洲精品人人| 久久久精品一区| 国产精品午夜春色av| 99re热这里只有精品免费视频| 久久国产精彩视频| 夜夜爽99久久国产综合精品女不卡| 午夜国产精品视频| 欧美日韩精品在线| 亚洲国产成人久久| 久久久av网站| 亚洲制服少妇| 欧美精品在线一区二区| 在线精品观看| 久久精品亚洲| 亚洲欧美成人一区二区在线电影| 欧美激情一区二区在线 | 欧美日韩一区在线观看| 激情小说另类小说亚洲欧美| 亚洲欧美国产精品桃花| 亚洲国产天堂久久综合| 午夜精品久久一牛影视| 欧美日韩日日骚| 亚洲精品日本| 亚洲片区在线| 欧美激情一区二区在线| 亚洲国产精品久久久久| 久久在线精品| 久久久亚洲精品一区二区三区| 国产日韩精品一区二区三区在线| 亚洲免费一级电影| 亚洲视屏在线播放| 欧美日韩国产在线观看| 亚洲精品日日夜夜| 亚洲福利视频免费观看| 男女激情久久| 99精品视频免费观看视频| 欧美电影美腿模特1979在线看| 久久久噜噜噜| 在线成人h网| 欧美成人精品在线视频| 美日韩精品视频| 亚洲人成毛片在线播放| 亚洲国产一区二区a毛片| 欧美激情一区在线| 亚洲一区二区三区四区五区黄| 99天天综合性| 国产午夜精品美女视频明星a级| 久久国产精品黑丝| 久久精品毛片| 久久婷婷国产综合国色天香| 最新日韩精品| 这里只有精品电影| 好吊视频一区二区三区四区| 欧美韩日一区| 欧美体内she精视频| 久久精品30| 久久视频一区二区| 99在线热播精品免费99热| 亚洲自拍偷拍麻豆| 亚洲国产毛片完整版 | 亚洲欧美日韩一区二区在线| 狠狠色狠狠色综合日日tαg| 亚洲高清视频在线观看| 国产精品美女久久| 免费成人激情视频| 欧美日韩免费观看一区三区| 欧美一区二区高清在线观看| 美女视频黄a大片欧美| 亚洲欧美日韩综合aⅴ视频| 久久天堂国产精品| 欧美一区二区黄色| 欧美国产一区二区在线观看 | 女人天堂亚洲aⅴ在线观看| 欧美日韩国产成人精品| 久久亚洲综合网| 欧美三级午夜理伦三级中视频| 久久综合久久综合这里只有精品| 欧美韩日精品| 巨乳诱惑日韩免费av| 国产精品激情偷乱一区二区∴| 欧美大片18| 国产一区清纯| 亚洲视频第一页| 亚洲乱码国产乱码精品精可以看| 午夜精品成人在线视频| 亚洲精品国产精品乱码不99| 欧美一区二区三区四区视频| 亚洲一区二区欧美| 欧美精品成人一区二区在线观看 | 亚洲大片精品永久免费| 亚洲午夜免费福利视频| av成人老司机| 鲁鲁狠狠狠7777一区二区| 欧美在线视频免费| 国产精品成人一区二区艾草| 亚洲破处大片| 亚洲欧洲一级| 嫩草成人www欧美| 久久久久久亚洲精品中文字幕| 欧美视频中文在线看| 亚洲黄页一区| 亚洲精品小视频| 免费成年人欧美视频| 欧美 亚欧 日韩视频在线| 欧美一区午夜视频在线观看| 亚洲影院色在线观看免费| 欧美日韩中文另类| 亚洲乱码国产乱码精品精98午夜| 亚洲欧洲日本国产| 欧美成人日韩| 亚洲伦理在线观看| 亚洲夜间福利| 国产精品久久久久久久久久免费 | 女同一区二区| 亚洲第一色中文字幕| 亚洲精品在线免费| 欧美日韩国产综合久久| 亚洲伦理一区| 性一交一乱一区二区洋洋av| 国产日韩欧美黄色| 久久九九热免费视频| 欧美bbbxxxxx| 亚洲精品一区二区三区樱花| 欧美日韩国产综合一区二区 | 欧美—级高清免费播放| 亚洲日本成人女熟在线观看| 一本色道久久综合亚洲精品不 | 久久久午夜视频| 樱桃视频在线观看一区| 免费在线日韩av| 一区二区三区www| 久久精品一区二区国产| 亚洲高清在线视频| 欧美日韩一二三四五区| 性久久久久久久久| 亚洲国产成人av在线| 亚洲综合欧美| 一区免费观看| 欧美色另类天堂2015| 久久国产精品亚洲va麻豆| 亚洲国产一区二区视频| 性欧美video另类hd性玩具| 国产夜色精品一区二区av| 老鸭窝毛片一区二区三区| 亚洲最快最全在线视频| 麻豆精品国产91久久久久久| 亚洲深夜福利视频| 狠狠色狠狠色综合人人| 欧美色大人视频| 老鸭窝亚洲一区二区三区| 亚洲午夜羞羞片| 亚洲国产成人久久| 久久av在线| 亚洲特级片在线| 亚洲电影观看| 国产欧美一区二区色老头 | 亚洲已满18点击进入久久| 久久综合色88| 先锋影音一区二区三区| 亚洲精品一区二区三区在线观看| 国产麻豆成人精品| 欧美日韩大陆在线| 久久久国产精品一区| 久久爱www.| 日韩一级在线观看| 激情丁香综合| 国产亚洲精品aa| 国产精品美腿一区在线看 | 激情国产一区二区| 国产日本欧美一区二区三区在线| 欧美日韩精品二区|