锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品自拍在线,日韩写真视频在线观看,欧美日韩国产精品一卡http://m.shnenglu.com/ruphy/category/13775.html鑴辯浜嗗瘋瀵烇紝璧拌繘浜嗗鐙紝紱誨紑浜嗘涔愶紝姝ュ叆浜嗙柉鐙?..zh-cnTue, 11 May 2010 19:50:15 GMTTue, 11 May 2010 19:50:15 GMT60鍝堝伐紼?003錛圚ay Points錛?/title><link>http://m.shnenglu.com/ruphy/articles/115005.html</link><dc:creator>姊︾窘鑻嶇┕</dc:creator><author>姊︾窘鑻嶇┕</author><pubDate>Mon, 10 May 2010 08:28:00 GMT</pubDate><guid>http://m.shnenglu.com/ruphy/articles/115005.html</guid><wfw:comment>http://m.shnenglu.com/ruphy/comments/115005.html</wfw:comment><comments>http://m.shnenglu.com/ruphy/articles/115005.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/ruphy/comments/commentRss/115005.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/ruphy/services/trackbacks/115005.html</trackback:ping><description><![CDATA[<p><span>TimeLimit: </span>1 Second   <span>MemoryLimit: </span>32 Megabyte </p> <p><span>Totalsubmit: </span>676   <span>Accepted: </span>426   </p> <div id="hvzpftn" class="content editor_content"> <p class=title>Description</p> <p>Each employee of a bureaucracy has a job description - a few paragraphs that describe the responsibilities of the job. The employee's job description, combined with other factors, such as seniority, is used to determine his or her salary.</p> <p>The Hay Point system frees the Human Resources department from having to make an intelligent judgement as to the value of the employee; the job description is merely scanned for words and phrases that indicate responsibility. In particular, job descriptions that indicate control over a large budget or management over a large number of people yield high Hay Point scores.</p> <p>You are to implement a simplified Hay Point system. You will be given a Hay Point dictionary and a number of job descriptions. For each job description you are to compute the salary associated with the job, according to the system. </p> <p class=title>Input</p> <p>The first line of input contains 2 positive integers: m <= 1000, the number of words in the Hay Point dictionary, and n <= 100, the number of job descriptions. m lines follow; each contains a word (a string of up to 16 lower-case letters) and a dollar value (a real number between 0 and 1,000,000). Following the dictionary are the n job descriptions. Each job description consists of one or more lines of text; for your convenience the text has been converted to lower case and has no characters other than letters, numbers, and spaces. Each job description is terminated by a line containing a period. </p> <p class=title>Output</p> <p>For each job description, output the corresponding salary computed as the sum of the Hay Point values for all words that appear in the description. Words that do not appear in the dictionary have a value of 0. </p> <p class=title>Sample Input</p> <p class=width>7 2<br>administer 100000<br>spending 200000<br>manage 50000<br>responsibility 25000<br>expertise 100<br>skill 50<br>money 75000<br>the incumbent will administer the spending of kindergarden milk money<br>and exercise responsibility for making change he or she will share<br>responsibility for the task of managing the money with the assistant<br>whose skill and expertise shall ensure the successful spending exercise<br>.<br>this individual must have the skill to perform a heart transplant and<br>expertise in rocket science<br>.</p> <p class=title>Sample Output</p> <p class=width>700150<br>150<br>榪欓寰堟按鐨勶紝鐩存帴瀹氫箟涓string綾繪暟緇勶紝鐒跺悗鍐嶄粠鏂囨鏌ユ壘璁板綍灝辮錛岀洿鎺ョ湅浠g爜<br></p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #008080"> 1</span><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">#include</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">iostream</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 2</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>#include</span><span style="COLOR: #000000"><</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 3</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">namespace</span><span style="COLOR: #000000"> std;<br></span><span style="COLOR: #008080"> 4</span><span style="COLOR: #000000"><img id=Codehighlighter1_63_86_Open_Image onclick="this.style.display='none'; Codehighlighter1_63_86_Open_Text.style.display='none'; Codehighlighter1_63_86_Closed_Image.style.display='inline'; Codehighlighter1_63_86_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_63_86_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_63_86_Closed_Text.style.display='none'; Codehighlighter1_63_86_Open_Image.style.display='inline'; Codehighlighter1_63_86_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span style="COLOR: #0000ff">struct</span><span id=Codehighlighter1_63_86_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_63_86_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080"> 5</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000"> s;<br></span><span style="COLOR: #008080"> 6</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> money;<br></span><span style="COLOR: #008080"> 7</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000">dictionary[</span><span style="COLOR: #000000">1000</span><span style="COLOR: #000000">];<br></span><span style="COLOR: #008080"> 8</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000"> description[</span><span style="COLOR: #000000">10000</span><span style="COLOR: #000000">];<br></span><span style="COLOR: #008080"> 9</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> main()<br></span><span style="COLOR: #008080">10</span><span style="COLOR: #000000"><img id=Codehighlighter1_143_1229_Open_Image onclick="this.style.display='none'; Codehighlighter1_143_1229_Open_Text.style.display='none'; Codehighlighter1_143_1229_Closed_Image.style.display='inline'; Codehighlighter1_143_1229_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_143_1229_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_143_1229_Closed_Text.style.display='none'; Codehighlighter1_143_1229_Open_Image.style.display='inline'; Codehighlighter1_143_1229_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_143_1229_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_143_1229_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">11</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">freopen("in.txt","r",stdin);<br></span><span style="COLOR: #008080">12</span><span style="COLOR: #008000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">freopen("out.txt","w",stdout);</span><span style="COLOR: #008000"><br></span><span style="COLOR: #008080">13</span><span style="COLOR: #008000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> m,n,temp,sum;<br></span><span style="COLOR: #008080">14</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000">(cin</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">m</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">n)<br></span><span style="COLOR: #008080">15</span><span style="COLOR: #000000"><img id=Codehighlighter1_264_1190_Open_Image onclick="this.style.display='none'; Codehighlighter1_264_1190_Open_Text.style.display='none'; Codehighlighter1_264_1190_Closed_Image.style.display='inline'; Codehighlighter1_264_1190_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_264_1190_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_264_1190_Closed_Text.style.display='none'; Codehighlighter1_264_1190_Open_Image.style.display='inline'; Codehighlighter1_264_1190_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </span><span id=Codehighlighter1_264_1190_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_264_1190_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">16</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                    </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> i</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;i</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">m;i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">17</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                    cin</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">dictionary[i].s</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">dictionary[i].money;<br></span><span style="COLOR: #008080">18</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                    </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> i</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;i</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">n;i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">19</span><span style="COLOR: #000000"><img id=Codehighlighter1_431_1184_Open_Image onclick="this.style.display='none'; Codehighlighter1_431_1184_Open_Text.style.display='none'; Codehighlighter1_431_1184_Closed_Image.style.display='inline'; Codehighlighter1_431_1184_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_431_1184_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_431_1184_Closed_Text.style.display='none'; Codehighlighter1_431_1184_Open_Image.style.display='inline'; Codehighlighter1_431_1184_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>                    </span><span id=Codehighlighter1_431_1184_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_431_1184_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">20</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                            sum</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">21</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                            </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> j;<br></span><span style="COLOR: #008080">22</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                            </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(j</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;;j</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">23</span><span style="COLOR: #000000"><img id=Codehighlighter1_573_778_Open_Image onclick="this.style.display='none'; Codehighlighter1_573_778_Open_Text.style.display='none'; Codehighlighter1_573_778_Closed_Image.style.display='inline'; Codehighlighter1_573_778_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_573_778_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_573_778_Closed_Text.style.display='none'; Codehighlighter1_573_778_Open_Image.style.display='inline'; Codehighlighter1_573_778_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>                            </span><span id=Codehighlighter1_573_778_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_573_778_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">24</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                                         cin</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">description[j];<br></span><span style="COLOR: #008080">25</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                                         </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(description[j]</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">26</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                                         </span><span style="COLOR: #0000ff">break</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">27</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>                            }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">28</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                            temp</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">j;<br></span><span style="COLOR: #008080">29</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                            </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> i</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;i</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">m;i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">30</span><span style="COLOR: #000000"><img id=Codehighlighter1_893_1117_Open_Image onclick="this.style.display='none'; Codehighlighter1_893_1117_Open_Text.style.display='none'; Codehighlighter1_893_1117_Closed_Image.style.display='inline'; Codehighlighter1_893_1117_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_893_1117_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_893_1117_Closed_Text.style.display='none'; Codehighlighter1_893_1117_Open_Image.style.display='inline'; Codehighlighter1_893_1117_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>                            </span><span id=Codehighlighter1_893_1117_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_893_1117_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">31</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                                    </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> j</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;j</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">temp;j</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">32</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                                    </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(dictionary[i].s</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">description[j])<br></span><span style="COLOR: #008080">33</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                                    sum</span><span style="COLOR: #000000">+=</span><span style="COLOR: #000000">dictionary[i].money;<br></span><span style="COLOR: #008080">34</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>                            }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">35</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                            cout</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">sum</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">endl;<br></span><span style="COLOR: #008080">36</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>                    }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">37</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">38</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">system("PAUSE");</span><span style="COLOR: #008000"><br></span><span style="COLOR: #008080">39</span><span style="COLOR: #008000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">40</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000">        <br></span><span style="COLOR: #008080">41</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span></div> <p class=width><br><br> </p> </div> <img src ="http://m.shnenglu.com/ruphy/aggbug/115005.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/ruphy/" target="_blank">姊︾窘鑻嶇┕</a> 2010-05-10 16:28 <a href="http://m.shnenglu.com/ruphy/articles/115005.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍝堝伐紼?001錛團orests錛?/title><link>http://m.shnenglu.com/ruphy/articles/115002.html</link><dc:creator>姊︾窘鑻嶇┕</dc:creator><author>姊︾窘鑻嶇┕</author><pubDate>Mon, 10 May 2010 07:59:00 GMT</pubDate><guid>http://m.shnenglu.com/ruphy/articles/115002.html</guid><wfw:comment>http://m.shnenglu.com/ruphy/comments/115002.html</wfw:comment><comments>http://m.shnenglu.com/ruphy/articles/115002.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/ruphy/comments/commentRss/115002.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/ruphy/services/trackbacks/115002.html</trackback:ping><description><![CDATA[<p><span>TimeLimit: </span>1 Second   <span>MemoryLimit: </span>32 Megabyte </p> <p><span>Totalsubmit: </span>1413   <span>Accepted: </span>326   </p> <div id="hvzpftn" class="content editor_content"> <p class=title>Description</p> <p>If a tree falls in the forest, and there's nobody there to hear, does it make a sound? This classic conundrum was coined by George Berkeley (1685-1753), the Bishop and influential Irish philosopher whose primary philosophical achievement is the advancement of what has come to be called subjective idealism. He wrote a number of works, of which the most widely-read are Treatise Concerning the Principles of Human Knowledge (1710) and Three Dialogues between Hylas and Philonous (1713) (Philonous, the "lover of the mind," representing Berkeley himself).</p> <p class=title>Input</p> <p>A forest contains T trees numbered from 1 to T and P people numbered from 1 to P. Standard input consists of a line containing P and T followed by several lines, containing a pair of integers i and j, indicating that person i has heard tree j fall. People may have different opinions as to which trees, according to Berkeley, have made a sound. </p> <p>Input contains multiple test cases. Subsequent test cases are separated with a single blank line.</p> <p class=title>Output</p> <p>How many different opinions are represented in the input? Two people hold the same opinion only if they hear exactly the same set of trees. You may assume that P < 100 and T < 100.</p> <p class=title>Sample Input</p> <p class=width>3 4<br>1 2<br>3 3<br>1 3<br>2 2<br>3 2<br>2 4 </p> <p class=title>Sample Output</p> <p class=width>2</p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #008080"> 1</span><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">#include</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">stdio.h</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 2</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>#include</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">stdlib.h</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 3</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> main()<br></span><span style="COLOR: #008080"> 4</span><span style="COLOR: #000000"><img id=Codehighlighter1_48_561_Open_Image onclick="this.style.display='none'; Codehighlighter1_48_561_Open_Text.style.display='none'; Codehighlighter1_48_561_Closed_Image.style.display='inline'; Codehighlighter1_48_561_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_48_561_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_48_561_Closed_Text.style.display='none'; Codehighlighter1_48_561_Open_Image.style.display='inline'; Codehighlighter1_48_561_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_48_561_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_48_561_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080"> 5</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> n,m,a,b,i,j,k;<br></span><span style="COLOR: #008080"> 6</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> s[</span><span style="COLOR: #000000">100</span><span style="COLOR: #000000">][</span><span style="COLOR: #000000">100</span><span style="COLOR: #000000">],arr[</span><span style="COLOR: #000000">100</span><span style="COLOR: #000000">];<br></span><span style="COLOR: #008080"> 7</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> flag,sum;<br></span><span style="COLOR: #008080"> 8</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">char</span><span style="COLOR: #000000"> str[</span><span style="COLOR: #000000">100</span><span style="COLOR: #000000">];<br></span><span style="COLOR: #008080"> 9</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000">(scanf(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">%d%d</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">n,</span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">m)</span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000">EOF)<br></span><span style="COLOR: #008080">10</span><span style="COLOR: #000000"><img id=Codehighlighter1_156_558_Open_Image onclick="this.style.display='none'; Codehighlighter1_156_558_Open_Text.style.display='none'; Codehighlighter1_156_558_Closed_Image.style.display='inline'; Codehighlighter1_156_558_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_156_558_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_156_558_Closed_Text.style.display='none'; Codehighlighter1_156_558_Open_Image.style.display='inline'; Codehighlighter1_156_558_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top></span><span id=Codehighlighter1_156_558_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_156_558_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">11</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>sum</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">12</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(i</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;i</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">n;i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">13</span><span style="COLOR: #000000"><img id=Codehighlighter1_182_222_Open_Image onclick="this.style.display='none'; Codehighlighter1_182_222_Open_Text.style.display='none'; Codehighlighter1_182_222_Closed_Image.style.display='inline'; Codehighlighter1_182_222_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_182_222_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_182_222_Closed_Text.style.display='none'; Codehighlighter1_182_222_Open_Image.style.display='inline'; Codehighlighter1_182_222_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top></span><span id=Codehighlighter1_182_222_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_182_222_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">14</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>arr[i]</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">15</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(j</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;j</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">m;j</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">16</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>s[i][j]</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">17</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">18</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>getchar(); <br></span><span style="COLOR: #008080">19</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000"> (gets(str)</span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000">NULL) <br></span><span style="COLOR: #008080">20</span><span style="COLOR: #000000"><img id=Codehighlighter1_261_358_Open_Image onclick="this.style.display='none'; Codehighlighter1_261_358_Open_Text.style.display='none'; Codehighlighter1_261_358_Closed_Image.style.display='inline'; Codehighlighter1_261_358_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_261_358_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_261_358_Closed_Text.style.display='none'; Codehighlighter1_261_358_Open_Image.style.display='inline'; Codehighlighter1_261_358_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top></span><span id=Codehighlighter1_261_358_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_261_358_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">21</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000"> (str[</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">]</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">\0</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">) <br></span><span style="COLOR: #008080">22</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>           </span><span style="COLOR: #0000ff">break</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">23</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>      sscanf(str,</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">%d %d</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">a,</span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">b); <br></span><span style="COLOR: #008080">24</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    s[a</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">][b</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">]</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">25</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">26</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(i</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;i</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">n;i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">27</span><span style="COLOR: #000000"><img id=Codehighlighter1_377_534_Open_Image onclick="this.style.display='none'; Codehighlighter1_377_534_Open_Text.style.display='none'; Codehighlighter1_377_534_Closed_Image.style.display='inline'; Codehighlighter1_377_534_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_377_534_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_377_534_Closed_Text.style.display='none'; Codehighlighter1_377_534_Open_Image.style.display='inline'; Codehighlighter1_377_534_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top></span><span id=Codehighlighter1_377_534_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_377_534_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">28</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(arr[i]</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">29</span><span style="COLOR: #000000"><img id=Codehighlighter1_393_532_Open_Image onclick="this.style.display='none'; Codehighlighter1_393_532_Open_Text.style.display='none'; Codehighlighter1_393_532_Closed_Image.style.display='inline'; Codehighlighter1_393_532_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_393_532_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_393_532_Closed_Text.style.display='none'; Codehighlighter1_393_532_Open_Image.style.display='inline'; Codehighlighter1_393_532_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top></span><span id=Codehighlighter1_393_532_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_393_532_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">30</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>sum</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">31</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(j</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">i</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;j</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">n;j</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">32</span><span style="COLOR: #000000"><img id=Codehighlighter1_421_530_Open_Image onclick="this.style.display='none'; Codehighlighter1_421_530_Open_Text.style.display='none'; Codehighlighter1_421_530_Closed_Image.style.display='inline'; Codehighlighter1_421_530_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_421_530_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_421_530_Closed_Text.style.display='none'; Codehighlighter1_421_530_Open_Image.style.display='inline'; Codehighlighter1_421_530_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top></span><span id=Codehighlighter1_421_530_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_421_530_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">33</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>flag</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">34</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(arr[j]</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">35</span><span style="COLOR: #000000"><img id=Codehighlighter1_445_528_Open_Image onclick="this.style.display='none'; Codehighlighter1_445_528_Open_Text.style.display='none'; Codehighlighter1_445_528_Closed_Image.style.display='inline'; Codehighlighter1_445_528_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_445_528_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_445_528_Closed_Text.style.display='none'; Codehighlighter1_445_528_Open_Image.style.display='inline'; Codehighlighter1_445_528_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top></span><span id=Codehighlighter1_445_528_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_445_528_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">36</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(k</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;k</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">m;k</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">37</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(s[i][k]</span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000">s[j][k])<br></span><span style="COLOR: #008080">38</span><span style="COLOR: #000000"><img id=Codehighlighter1_485_503_Open_Image onclick="this.style.display='none'; Codehighlighter1_485_503_Open_Text.style.display='none'; Codehighlighter1_485_503_Closed_Image.style.display='inline'; Codehighlighter1_485_503_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_485_503_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_485_503_Closed_Text.style.display='none'; Codehighlighter1_485_503_Open_Image.style.display='inline'; Codehighlighter1_485_503_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top></span><span id=Codehighlighter1_485_503_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_485_503_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">39</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>flag</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">40</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">break</span><span style="COLOR: #000000">; <br></span><span style="COLOR: #008080">41</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">42</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(flag</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">) <br></span><span style="COLOR: #008080">43</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>arr[j]</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">44</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">45</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">46</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">47</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">48</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>printf(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">%d\n</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,sum); <br></span><span style="COLOR: #008080">49</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000"> <br></span><span style="COLOR: #008080">50</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span></div> </div> <img src ="http://m.shnenglu.com/ruphy/aggbug/115002.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/ruphy/" target="_blank">姊︾窘鑻嶇┕</a> 2010-05-10 15:59 <a href="http://m.shnenglu.com/ruphy/articles/115002.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>榛戦緳姹?010緗戠粶璧涜В棰樻姤鍛婏紙鍝堝伐紼?332 A Football Game錛?/title><link>http://m.shnenglu.com/ruphy/articles/114998.html</link><dc:creator>姊︾窘鑻嶇┕</dc:creator><author>姊︾窘鑻嶇┕</author><pubDate>Mon, 10 May 2010 07:18:00 GMT</pubDate><guid>http://m.shnenglu.com/ruphy/articles/114998.html</guid><wfw:comment>http://m.shnenglu.com/ruphy/comments/114998.html</wfw:comment><comments>http://m.shnenglu.com/ruphy/articles/114998.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/ruphy/comments/commentRss/114998.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/ruphy/services/trackbacks/114998.html</trackback:ping><description><![CDATA[<p><strong>TimeLimit</strong> : 1 Second <strong>Memorylimit</strong> : 32 Megabyte </p> <p><strong>Totalsubmit</strong> : 165 <strong>Accepted</strong> : 38</p> <div> <p><span>There is a football game between teamX and teamY, we assume the position of the center of football ground is (0, 0),the position of the teamY's goal is(100,0),the position of the teamX's goal is(-100,0).</span></p> <p><span>Now xiaoA in teamX wants to pass the football to his teammate xiaoB, was xiaoB offside(</span><span>瓚婁綅</span><span>)</span><span>錛?/span></p> <h2><span>Input</span></h2> <p><span>The first line of input contains a positive integer N <= 10, the number of test cases. For each test case there is one line contains 24 number, the first and second number indicate the position of xiaoA, the third and forth number indicate the position of xiaoB, and the remaining numbers indicate the positions of the team members in teamY.</span></p> <h2><span>Output</span></h2> <p><span>If xiaoB is offside output "Oh, My god!", else output "Come on!"</span></p> <h2><span>Sample Input</span></h2> <p><span>1</span></p> <p><span>-99 0 99 0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 0 10 0</span></p> <h2><span>Sample Output</span></h2> <p><span>Oh, My god!</span></p> <h2><span>Hint</span></h2> <p><span>If xiaoA passes the football to xiaoB</span><span>錛?/span><span> and there is no members of teamY in front of xiaoB</span><span>錛?/span><span>then xiaoB is offside.</span></p> <p><span>榪欓寰堟按錛屼絾瑕佹敞鎰忚秺浣嶈鍒欙紝鍦ㄥ郊鏂瑰崐鍦哄茍涓攛iaob鐨剎鍧愭爣澶т簬褰兼柟鎵鏈夌悆鍛樼殑x鍧愭爣灝辯畻瓚婁綅銆傚彧闇瑕佸垽鏂璽eamY鐨勬墍鏈夐槦鍛樼殑鏈澶鍧愭爣涓巘eamX鐨剎iaoB鐨勫潗鏍囩殑鍏崇郴鍗沖彲銆?/p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">#include</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">iostream</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>#include</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">cstdlib</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">namespace</span><span style="COLOR: #000000"> std;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> main()<br><img id=Codehighlighter1_69_553_Open_Image onclick="this.style.display='none'; Codehighlighter1_69_553_Open_Text.style.display='none'; Codehighlighter1_69_553_Closed_Image.style.display='inline'; Codehighlighter1_69_553_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_69_553_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_69_553_Closed_Text.style.display='none'; Codehighlighter1_69_553_Open_Image.style.display='inline'; Codehighlighter1_69_553_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_69_553_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_69_553_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> ax,ay,bx,by,otherx,othery,max;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">鍙橀噺鍙噸澶嶄嬌鐢紝涓嶈繃鎴戣寰楁病蹇呰</span><span style="COLOR: #008000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> n;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    cin</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">n;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000">(n</span><span style="COLOR: #000000">--</span><span style="COLOR: #000000">)<br><img id=Codehighlighter1_170_514_Open_Image onclick="this.style.display='none'; Codehighlighter1_170_514_Open_Text.style.display='none'; Codehighlighter1_170_514_Closed_Image.style.display='inline'; Codehighlighter1_170_514_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_170_514_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_170_514_Closed_Text.style.display='none'; Codehighlighter1_170_514_Open_Image.style.display='inline'; Codehighlighter1_170_514_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </span><span id=Codehighlighter1_170_514_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_170_514_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>              max</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>              cin</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">ax</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">ay</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">bx</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">by;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>              </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> i</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;i</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">10</span><span style="COLOR: #000000">;i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">姹傚彇teamy鏈澶х殑X鍧愭爣</span><span style="COLOR: #008000"><br><img id=Codehighlighter1_293_400_Open_Image onclick="this.style.display='none'; Codehighlighter1_293_400_Open_Text.style.display='none'; Codehighlighter1_293_400_Closed_Image.style.display='inline'; Codehighlighter1_293_400_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_293_400_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_293_400_Closed_Text.style.display='none'; Codehighlighter1_293_400_Open_Image.style.display='inline'; Codehighlighter1_293_400_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top></span><span style="COLOR: #000000">              </span><span id=Codehighlighter1_293_400_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_293_400_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                      cin</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">otherx</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">othery;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                      </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(max</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">otherx)max</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">otherx;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>              }</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>              </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(bx</span><span style="COLOR: #000000">></span><span style="COLOR: #000000">max)cout</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Oh, My god!</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">endl;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>              </span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>              cout</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Come on!</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">endl;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">system("PAUSE");</span><span style="COLOR: #008000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span></div> </span></div> <img src ="http://m.shnenglu.com/ruphy/aggbug/114998.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/ruphy/" target="_blank">姊︾窘鑻嶇┕</a> 2010-05-10 15:18 <a href="http://m.shnenglu.com/ruphy/articles/114998.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>榛戦緳姹?010緗戠粶璧涜В棰樻姤鍛婏紙鍝堝伐紼?1333 So Many Skirts錛?/title><link>http://m.shnenglu.com/ruphy/articles/114997.html</link><dc:creator>姊︾窘鑻嶇┕</dc:creator><author>姊︾窘鑻嶇┕</author><pubDate>Mon, 10 May 2010 07:16:00 GMT</pubDate><guid>http://m.shnenglu.com/ruphy/articles/114997.html</guid><wfw:comment>http://m.shnenglu.com/ruphy/comments/114997.html</wfw:comment><comments>http://m.shnenglu.com/ruphy/articles/114997.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/ruphy/comments/commentRss/114997.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/ruphy/services/trackbacks/114997.html</trackback:ping><description><![CDATA[<p><strong>TimeLimit</strong> : 1 Second <strong>Memorylimit</strong> : 32 Megabyte </p> <p><strong>Totalsubmit</strong> : 954 <strong>Accepted</strong> : 214</p> <div> <p>xiaoA is a beautiful girl, and she has so many skirts that she won't wear a skirt a second time before the skirt is washed.Now xiaoA wants to go shopping, <br>how many skirts she can choose to wear.<br>In order to distinguish these skirts,she gives out every skirt with a unique name.</p> <p><strong>Input</strong></p> <p>The first line of input contains a positive integer T (T <= 100), the number of test cases.<br>Each test case contains two integers N and M (1<=N,M<=100) in the first line.<br>N is the number of skirts.M is the number of operations. <br>Then N lines follow.Every line contains a word and the word is not longer than 10.<br>Then M lines follow.Each line contains a character 'D' or 'W' and the name of a skirt. <br>'D' indicates that xiaoA has wore the skirt. 'W' indicates that xiaoA has washed the skirt.</p> <p><strong>Output</strong></p> <p>After the M operations, you need to output that how many skirts can be chosen by xiaoA to wear.</p> <p><strong>Sample Input</strong></p> <p>1<br>5 5<br>SkirtA <br>SkirtB <br>SkirtC <br>SkirtD <br>SkirtE<br>D SkirtA <br>D SkirtB <br>D SkirtC <br>D SkirtD <br>W SkirtA</p> <p><strong>Sample Output</strong></p> <p>2</p> <p>姘撮涓涓?#8230;…錛屾妸鎵鏈塻kirt name璇誨彇鍒頒竴涓猻tring鏁扮粍涓紝鐒跺悗璇誨彇鐘舵侀噺錛屽悓鏃朵笌skirt name鍖歸厤錛屽啀鐢ㄤ竴涓猙ool琛屾暟緇剆tate 璁板綍skirt鐨勫強鏃剁姸鎬併?/p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #008080"> 1</span><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">#include</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">iostream</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 2</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>#include</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">cstdlib</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 3</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>#include</span><span style="COLOR: #000000"><</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 4</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">namespace</span><span style="COLOR: #000000"> std;<br></span><span style="COLOR: #008080"> 5</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000"> name[</span><span style="COLOR: #000000">101</span><span style="COLOR: #000000">];<br></span><span style="COLOR: #008080"> 6</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">  name_s;<br></span><span style="COLOR: #008080"> 7</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">bool</span><span style="COLOR: #000000"> state[</span><span style="COLOR: #000000">101</span><span style="COLOR: #000000">];<br></span><span style="COLOR: #008080"> 8</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> main()<br></span><span style="COLOR: #008080"> 9</span><span style="COLOR: #000000"><img id=Codehighlighter1_137_1117_Open_Image onclick="this.style.display='none'; Codehighlighter1_137_1117_Open_Text.style.display='none'; Codehighlighter1_137_1117_Closed_Image.style.display='inline'; Codehighlighter1_137_1117_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_137_1117_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_137_1117_Closed_Text.style.display='none'; Codehighlighter1_137_1117_Open_Image.style.display='inline'; Codehighlighter1_137_1117_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_137_1117_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_137_1117_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">10</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> T,n,m,count;<br></span><span style="COLOR: #008080">11</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #0000ff">char</span><span style="COLOR: #000000"> CH;<br></span><span style="COLOR: #008080">12</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    cin</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">T;<br></span><span style="COLOR: #008080">13</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #0000ff">while</span><span style="COLOR: #000000">(T</span><span style="COLOR: #000000">--</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">14</span><span style="COLOR: #000000"><img id=Codehighlighter1_204_1078_Open_Image onclick="this.style.display='none'; Codehighlighter1_204_1078_Open_Text.style.display='none'; Codehighlighter1_204_1078_Closed_Image.style.display='inline'; Codehighlighter1_204_1078_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_204_1078_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_204_1078_Closed_Text.style.display='none'; Codehighlighter1_204_1078_Open_Image.style.display='inline'; Codehighlighter1_204_1078_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </span><span id=Codehighlighter1_204_1078_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_204_1078_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">15</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>              count</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">16</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>              cin</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">n</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">m;<br></span><span style="COLOR: #008080">17</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>              </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> i</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;i</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">n;i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">18</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>              state[i]</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">19</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>              </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> i</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;i</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">n;i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">20</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>              cin</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">name[i];<br></span><span style="COLOR: #008080">21</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>              </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> i</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;i</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">m;i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">22</span><span style="COLOR: #000000"><img id=Codehighlighter1_430_961_Open_Image onclick="this.style.display='none'; Codehighlighter1_430_961_Open_Text.style.display='none'; Codehighlighter1_430_961_Closed_Image.style.display='inline'; Codehighlighter1_430_961_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_430_961_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_430_961_Closed_Text.style.display='none'; Codehighlighter1_430_961_Open_Image.style.display='inline'; Codehighlighter1_430_961_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>              </span><span id=Codehighlighter1_430_961_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_430_961_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">23</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                      cin</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">CH;<br></span><span style="COLOR: #008080">24</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                      cin</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">name_s;<br></span><span style="COLOR: #008080">25</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                      </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> j</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;j</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">n;j</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">26</span><span style="COLOR: #000000"><img id=Codehighlighter1_563_945_Open_Image onclick="this.style.display='none'; Codehighlighter1_563_945_Open_Text.style.display='none'; Codehighlighter1_563_945_Closed_Image.style.display='inline'; Codehighlighter1_563_945_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_563_945_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_563_945_Closed_Text.style.display='none'; Codehighlighter1_563_945_Open_Image.style.display='inline'; Codehighlighter1_563_945_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>                      </span><span id=Codehighlighter1_563_945_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_563_945_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">27</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                              </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(name_s</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">name[j])<br></span><span style="COLOR: #008080">28</span><span style="COLOR: #000000"><img id=Codehighlighter1_645_921_Open_Image onclick="this.style.display='none'; Codehighlighter1_645_921_Open_Text.style.display='none'; Codehighlighter1_645_921_Closed_Image.style.display='inline'; Codehighlighter1_645_921_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_645_921_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_645_921_Closed_Text.style.display='none'; Codehighlighter1_645_921_Open_Image.style.display='inline'; Codehighlighter1_645_921_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>                              </span><span id=Codehighlighter1_645_921_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_645_921_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">29</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                                                 </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(CH</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">D</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">30</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                                                 state[j]</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">false</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">31</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                                                 </span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">32</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                                                 state[j]</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">33</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>                              }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">34</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>                      }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">35</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>              }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">36</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>              </span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000"> i</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;i</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">n;i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">37</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                      </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(state[i])count</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">38</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>              cout</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">count</span><span style="COLOR: #000000"><<</span><span style="COLOR: #000000">endl;<br></span><span style="COLOR: #008080">39</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">40</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">system("PAUSE");</span><span style="COLOR: #008000"><br></span><span style="COLOR: #008080">41</span><span style="COLOR: #008000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">42</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">43</span><span style="COLOR: #000000"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top></span></div> </div> <img src ="http://m.shnenglu.com/ruphy/aggbug/114997.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/ruphy/" target="_blank">姊︾窘鑻嶇┕</a> 2010-05-10 15:16 <a href="http://m.shnenglu.com/ruphy/articles/114997.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>榛戦緳姹?010緗戠粶璧涜В棰樻姤鍛?鍝堝伐紼?336 Losing Mobile Phone)http://m.shnenglu.com/ruphy/articles/114996.html姊︾窘鑻嶇┕姊︾窘鑻嶇┕Mon, 10 May 2010 07:13:00 GMThttp://m.shnenglu.com/ruphy/articles/114996.htmlhttp://m.shnenglu.com/ruphy/comments/114996.htmlhttp://m.shnenglu.com/ruphy/articles/114996.html#Feedback0http://m.shnenglu.com/ruphy/comments/commentRss/114996.htmlhttp://m.shnenglu.com/ruphy/services/trackbacks/114996.html

Losing Mobile Phone
TimeLimit
: 1 Second Memorylimit : 32 Megabyte

Totalsubmit : 1 Accepted : 1

Description

XiaoA has N friends , now he would like to contact his friend N , but unfortunately , he lost his mobile phone, and he can just come up with friend 1 's phone number. Can you tell us whether he can build contact with his friend N.

Input

The first line of input contains a positive integer T <= 100, the number of test cases. For each case , there is an integer N (1<=N<=100) in the first line , means xiaoA has N friends , then follows N lines , in the ith line , there is an integer M first, means xiaoA’s friend i can contact with M xiaoA’s friends , then follows M integers kij , means friend i of xiaoA can contact with xiaoA’s friend kij (1<=i<=N, 1<=j<=M,1<=kij<=N) .

Output

For each test case , print one line "yes" if xiaoA can contact with friend N , or "no" instead.

Sample Input

2

5

1 2

1 3

1 4

1 5

4 1 2 3 4

5

3 2 3 4

3 1 3 4

3 1 2 4

3 1 2 3

4 1 2 3 4

Sample Output

yes

no

鐢ㄩ掑綊鐨勬柟娉曢亶鍘嗘墍鏈塮riends錛屾煡鎵炬槸鍚︿細鍒拌揪friends N濡傛灉鍒拌揪鍒欐爣璁癟RUE銆?/p>

 1#include<iostream>
 2#include<cstdlib>
 3using namespace std;
 4void search(int n); 
 5int T,N;
 6struct{
 7       int relation[105];
 8       bool sign;
 9       int x;
10       }
frien_d[105];
11int main()
12{
13    //freopen("in.dat","r",stdin);
14    //freopen("out.dat","w",stdout);
15    cin>>T;
16    while(T--)
17    {
18              cin>>N;
19              for(int i=1;i<=N;i++)
20              {
21                      cin>>frien_d[i].x;
22                      for(int j=1;j<=frien_d[i].x;j++)
23                      cin>>frien_d[i].relation[j];
24              }

25              for(int i=1;i<N;i++)
26              frien_d[i].sign=true;
27              frien_d[N].sign=false;
28              search(1);
29              if(frien_d[N].sign)
30              cout<<"yes"<<endl;
31              else
32              cout<<"no"<<endl;
33    }

34    //system("PAUSE");
35    return 0;
36}

37void search(int n)
38{
39      if(frien_d[n].sign==false)return;
40      for(int i=1;i<=frien_d[n].x;i++)
41      {
42              if(frien_d[n].relation[i]==N)
43              {
44                                           frien_d[N].sign=true;
45                                           return;
46                                           break;
47              }

48              else 
49              {
50                   frien_d[n].sign=false;
51                   search(frien_d[n].relation[i]);
52              }

53      }

54}

55


姊︾窘鑻嶇┕ 2010-05-10 15:13 鍙戣〃璇勮
]]>
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            中文欧美在线视频| av成人福利| 久久综合婷婷| 久久久人成影片一区二区三区| 亚洲图片你懂的| 中日韩高清电影网| 亚洲综合视频1区| 亚洲欧美日韩综合国产aⅴ| 亚洲欧美日韩在线一区| 欧美怡红院视频| 久久久www成人免费毛片麻豆| 久久国产高清| 欧美成人亚洲成人| 欧美日韩午夜在线| 国产精品亚洲不卡a| 国产精品成人一区二区网站软件 | 亚洲欧美国产视频| 欧美亚洲专区| 久久久综合网| 欧美午夜在线一二页| 国产精品日韩高清| 韩国一区电影| 一本色道久久99精品综合| 午夜影院日韩| 免费亚洲一区二区| 在线一区二区三区做爰视频网站 | 精品成人免费| 99re6这里只有精品视频在线观看| 亚洲在线一区二区三区| 久久夜色精品国产噜噜av| 亚洲日韩第九十九页| 亚洲视频福利| 免费观看成人鲁鲁鲁鲁鲁视频| 欧美性大战久久久久久久蜜臀| 影音先锋亚洲视频| 亚洲影音一区| 亚洲激情视频在线观看| 午夜精品区一区二区三| 欧美精品一区三区| 一区二区三区在线视频免费观看| 亚洲网站在线看| 男人天堂欧美日韩| 一区二区三区免费网站| 免费亚洲一区| 黄色在线成人| 久久av一区二区三区漫画| 亚洲激情在线| 久久综合九色欧美综合狠狠| 国产精品―色哟哟| 日韩一级精品| 亚洲第一在线综合在线| 久久精品中文字幕一区| 国产日本欧美一区二区三区| 美女主播精品视频一二三四| 亚洲国产精品久久久久| 久久久久99精品国产片| 国产日本欧美一区二区| 亚洲欧美日本在线| 日韩午夜中文字幕| 欧美国产日韩a欧美在线观看| 在线观看日韩av| 久久久久国产精品麻豆ai换脸 | 久久国产精品99久久久久久老狼| 欧美巨乳波霸| aa级大片欧美| 亚洲九九九在线观看| 欧美激情精品久久久久久黑人 | 老司机免费视频一区二区三区 | 欧美激情亚洲一区| 亚洲第一区色| 亚洲国产欧美不卡在线观看| 开元免费观看欧美电视剧网站| 精品成人国产在线观看男人呻吟| 久久精品视频va| 欧美在线日韩精品| 国内精品久久久久影院薰衣草| 久久网站免费| 久久这里只有精品视频首页| 亚洲日本欧美| 亚洲国产欧美在线| 欧美日韩国产小视频| 亚洲字幕在线观看| 西瓜成人精品人成网站| 激情成人av在线| 欧美激情一二三区| 欧美日韩国产综合在线| 亚洲欧美变态国产另类| 欧美一区二区三区日韩| 精品av久久久久电影| 亚洲国产成人高清精品| 欧美日韩国产成人高清视频| 亚洲免费网址| 久久久久国产精品厨房| 亚洲免费播放| 亚洲欧美精品中文字幕在线| 精品88久久久久88久久久| 亚洲黄网站在线观看| 国产精品女人毛片| 狂野欧美性猛交xxxx巴西| 欧美精品首页| 久久亚洲春色中文字幕久久久| 欧美xxxx在线观看| 性欧美8khd高清极品| 老司机久久99久久精品播放免费| 中国成人亚色综合网站| 久久精品日韩| 亚洲欧美日韩第一区| 久久综合99re88久久爱| 亚洲欧美在线视频观看| 免费观看成人鲁鲁鲁鲁鲁视频| 亚洲一区一卡| 欧美大片18| 久热精品视频在线免费观看 | 午夜精品福利一区二区蜜股av| 久久九九免费视频| 亚洲视频一二三| 老司机久久99久久精品播放免费| 亚洲欧美日韩一区二区| 麻豆精品网站| 久久久噜噜噜久噜久久| 国产精品成人av性教育| 亚洲国产成人精品视频| 国产在线观看精品一区二区三区 | 亚洲国产精品小视频| 欧美日韩一级黄| 亚洲精品乱码久久久久久蜜桃91| 亚洲男人影院| 亚洲视频专区在线| 久热综合在线亚洲精品| 久久久久国产精品厨房| 国产精品乱码妇女bbbb| 一区二区精品在线| 亚洲精品一区二区三区蜜桃久| 久久久久久久久蜜桃| 久久福利资源站| 国产精品视频一二三| 日韩视频中文字幕| 日韩午夜在线观看视频| 欧美粗暴jizz性欧美20| 免费看的黄色欧美网站| 经典三级久久| 久久九九免费视频| 久久偷窥视频| 在线成人小视频| 久久久久久网址| 免费av成人在线| 亚洲国产99| 欧美多人爱爱视频网站| 亚洲国产另类久久久精品极度| 亚洲三级观看| 欧美精品首页| 在线中文字幕日韩| 亚洲欧美精品伊人久久| 国产欧美日韩精品a在线观看| 在线视频欧美日韩精品| 香蕉尹人综合在线观看| 国产区二精品视| 久久久久久久91| 亚洲电影免费在线| 99精品黄色片免费大全| 国产精品porn| 午夜在线电影亚洲一区| 久久综合色88| 日韩一级黄色大片| 国产精品久久久久国产精品日日 | 欧美在线精品一区| 国产一区二区高清视频| 蜜桃av一区二区| 一区二区三区|亚洲午夜| 久久久国产视频91| 一本久道久久久| 国产色视频一区| 欧美精品免费视频| 久久er99精品| 99精品热视频只有精品10| 久久久久高清| 亚洲一区二区三区四区在线观看| 国产夜色精品一区二区av| 欧美激情网友自拍| 欧美在线免费视频| 99精品视频免费观看| 欧美成人一品| 久久9热精品视频| 在线一区亚洲| 一区二区三区在线视频播放| 国产精品国产a级| 欧美成人一区二区在线| 久久aⅴ国产欧美74aaa| 黄色日韩网站视频| 亚洲欧美一区二区精品久久久| 亚洲二区在线观看| 亚洲日韩中文字幕在线播放| 欧美日韩在线视频观看| 免播放器亚洲一区| 国产喷白浆一区二区三区| 91久久精品国产91久久| 国产精品毛片| 欧美成人性网| 国内成人在线| 亚洲一本大道在线|