<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-792890866617698159</id><updated>2011-07-31T01:05:48.407-07:00</updated><title type='text'>Coding Quiz</title><subtitle type='html'>SK C&amp;amp;C E-PRJ팀 Programmer 구인 Site</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-7813863066898550129</id><published>2009-03-09T23:29:00.000-07:00</published><updated>2009-09-28T19:02:19.586-07:00</updated><title type='text'>[구인] 3D Virtual World 개발자</title><content type='html'>&lt;h3 class="post-title entry-title"  style=" color: rgb(0, 0, 0); font-size:140%;"&gt;&lt;span class="Apple-style-span"  style=" font-weight: normal; font-size:16px;"&gt;SK C&amp;amp;C Metaverse팀에서는 준비중인 Virtual World Platform을같이 개발하실 개발자분들을 모집합니다.&lt;/span&gt;&lt;/h3&gt;&lt;div class="post-body entry-content"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;  font-size:100%;"&gt;* 담당 업무&lt;/span&gt;&lt;br /&gt;Virtual World Platform 개발&lt;/div&gt;&lt;div class="post-body entry-content"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;* 지원 자격&lt;/span&gt;&lt;br /&gt;성별/연령/학력 불문&lt;div&gt;C++ 전문 개발 경력 5년 이상&lt;br /&gt;C/C++ Expert&lt;br /&gt;팀 작업에 익숙하고 다른 사람들과의 커뮤니케이션에 문제가 없는 자&lt;br /&gt;영문 기술 문서 읽기에 익숙하신 분&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;* 우대 사항&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;ul type="disc" style="margin-top: 0cm; "&gt;&lt;li class="MsoNormal"  style="color:black;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;클라이언트&lt;/span&gt;&lt;/li&gt;&lt;ul type="circle" style="margin-top: 0cm; "&gt;&lt;li class="MsoNormal"  style="color:black;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;메인 클라이언트의 로직 구현과 서버와의 커뮤니케이션 구현&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal"  style="color:black;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;네트웍 및 게임 로직 구현 경험자&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" color="black"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;상용 3D engine 사용 경험자&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" color="black"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;네트웍과 3D 에 대한 이해 필요&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" color="black"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;기획팀과 커뮤니케이션이 원활한 자&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style="margin-top:0cm" type="disc"&gt;&lt;li class="MsoNormal"  style="mso-list:l0 level1 lfo1;tab-stops:list 36.0ptcolor:black;"&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;서버&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;  &lt;ul style="margin-top:0cm" type="circle"&gt;   &lt;li class="MsoNormal"  style="color:black;"&gt;&lt;span lang="EN-US"  style="font-family:&amp;quot;;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Virtual       World Server &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;제작&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US"  style="font-family:&amp;quot;;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;   &lt;li class="MsoNormal" color="black"&gt;&lt;span lang="EN-US"  style="font-family:&amp;quot;;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;MMORPG       Server &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;개발&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:&amp;quot;;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;유경험자&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US"  style="font-family:&amp;quot;;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;   &lt;li class="MsoNormal" color="black"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;네트웍&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US"  style="font-family:&amp;quot;;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;/DB/Thread       scheduling/memory management/server-side script language &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;관련&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:&amp;quot;;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;경험&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:&amp;quot;;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;보유자&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US"  style="font-family:&amp;quot;;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;   &lt;li class="MsoNormal" style="color:black;"&gt;&lt;span lang="EN-US"  style="font-family:&amp;quot;;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;OS       &amp;amp; kernel&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;의&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:&amp;quot;;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;동작&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:&amp;quot;;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;구조를&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:&amp;quot;;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;이해하고&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US"  style="font-family:&amp;quot;;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; tuning &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;가능자&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;ul type="disc" style="margin-top: 0cm; "&gt;&lt;li class="MsoNormal" style="color:black;"&gt;Mobile (iPhone)&lt;/li&gt;&lt;ul type="circle" style="margin-top: 0cm; "&gt;&lt;li class="MsoNormal" color="black"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;iPhone Application 개발&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;span style="font-weight: bold; "&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;* 대우&lt;/span&gt;&lt;br /&gt;정직원&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;* 연봉&lt;/span&gt;&lt;br /&gt;추후 협의&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;* 복리후생&lt;/span&gt;&lt;br /&gt;연금/보험 : 국민연금, 고용보험, 산재보험, 건강보험&lt;br /&gt;휴무/휴가 : 주5일 근무, 연차, 정기 휴가&lt;br /&gt;보상 제도 : 인센티브제&lt;br /&gt;건강관리 지원 : 건강검진, 본인 의료비 지원&lt;br /&gt;생활안정 지원 : 자녀 학자금 지원, 직원대출제도&lt;br /&gt;생활편의 지원 : 사원식당, 통근버스 운행&lt;br /&gt;경조사 지원 : 각종 경조금, 경조휴가제&lt;br /&gt;교육/여가 지원 : 자기계발비 지원&lt;br /&gt;기타 : 사내 헬스 센터/의무실/어린이집 운영&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;* 전형 절차&lt;/span&gt;&lt;br /&gt;기술 필기 -&gt; 실무자 면접 -&gt; 임원진 면접 -&gt; 합격자 발표&lt;/div&gt;&lt;div&gt;관련 경력(MMORPG, Virtual World 개발 경력)이 충분히 있다고 판단하시는 분은 기술 필기 없이 바로 이력서를 보내주셔도 좋습니다.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;* 기술 필기&lt;/span&gt;&lt;br /&gt;다음의 문제 중 4문제 이상을 풀어 source code를 메일로 제출&lt;br /&gt;C++ 을 사용할 것. STL/MFC 사용하지 말 것.&lt;br /&gt;&lt;ul class="posts"&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/3n-1-problem.html" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;The 3n + 1 problem&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/prime-ring-problem.html" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;Prime Ring Problem&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/settlers-of-catan.html" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;The Settlers of Catan&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/anagram.html" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;Anagram&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/wormholes.html" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;Wormholes&lt;/a&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/re-connecting-computer-sites.html" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/re-connecting-computer-sites.html" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;Re-connecting Computer Sites&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/password-search.html" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;Password Search&lt;/a&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/2d-representations.html" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/2d-representations.html" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;2D Representations&lt;/a&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/telephone-directory-alphabetization.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/telephone-directory-alphabetization.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;Telephone Directory Alphabetization&lt;/a&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/dividing-up.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/dividing-up.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;Dividing up&lt;/a&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/overlapping-air-traffic-control-zones.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/overlapping-air-traffic-control-zones.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;Overlapping Air Traffic Control Zones&lt;/a&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/caesar-cypher.html" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/caesar-cypher.html" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;Caesar Cypher&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;* 제출 서류&lt;/span&gt; (담당자에게 이메일 제출)&lt;br /&gt;기술 필기 시험 결과 (program source code)&lt;br /&gt;이력서&lt;br /&gt;Project 경력 기술서&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;* 담당자&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vTLYzXn0_tE/SKwcve_RKsI/AAAAAAAAB3E/I1UpOBQxLrM/s1600-h/ccc.jpg" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;&lt;img src="http://1.bp.blogspot.com/_vTLYzXn0_tE/SKwcve_RKsI/AAAAAAAAB3E/I1UpOBQxLrM/s320/ccc.jpg" alt="" id="BLOGGER_PHOTO_ID_5236592068822903490" border="0" style="margin-top: 0pt; margin-right: 10px; margin-bottom: 10px; margin-left: 0pt; float: left; cursor: pointer; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;* 기타&lt;/span&gt;&lt;br /&gt;Metaverse 팀은 개발자를 구인 중입니다. programming을 직접 하실 분만 지원 부탁드립니다. (PM 직군은 신규 채용 예정이 없습니다.)&lt;br /&gt;문의 사항이 있으신 분은 담당자에게 연락 부탁드립니다.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;회사 이메일 주소가 안되시는 분은 개인 이메일 주소 naraofbaram at gmail.com 으로 보내주시기 바랍니다.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-7813863066898550129?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/7813863066898550129/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=7813863066898550129' title='1개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/7813863066898550129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/7813863066898550129'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2009/03/virtual-world.html' title='[구인] 3D Virtual World 개발자'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_vTLYzXn0_tE/SKwcve_RKsI/AAAAAAAAB3E/I1UpOBQxLrM/s72-c/ccc.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-8114204784337513272</id><published>2008-09-10T02:19:00.001-07:00</published><updated>2008-10-30T20:46:29.301-07:00</updated><title type='text'>[구인] C++ Senior Programmer</title><content type='html'>SK C&amp;amp;C E-PRJ팀에서는 C++ Senior Programmer를 모집합니다.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;  font-size:100%;"&gt;* 담당 업무&lt;/span&gt;&lt;br /&gt;항공 사진을 이용한 3D Mirror World Production System 개발&lt;br /&gt;cluster 로 이루어진 production system 에서 동작할 대용량 이미지 처리 s/w 구현&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;* 지원 자격 및 우대 사항&lt;/span&gt;&lt;br /&gt;성별/연령/학력 불문&lt;div&gt;C++ 전문 개발 경력 5년 이상&lt;br /&gt;C/C++ Expert&lt;br /&gt;팀 작업에 익숙하고 다른 사람들과의 커뮤니케이션에 문제가 없는 자&lt;br /&gt;영문 기술 문서 읽기에 익숙하신 분&lt;br /&gt;다양한 상용/공개 라이브러리를 사용해본 경험자 우대&lt;br /&gt;GIS/Computer Graphics/Computer Vision/Numerical Analysis 경험자 우대&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;* 대우&lt;/span&gt;&lt;br /&gt;정직원&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;* 연봉&lt;/span&gt;&lt;br /&gt;추후 협의&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;* 복리후생&lt;/span&gt;&lt;br /&gt;연금/보험 : 국민연금, 고용보험, 산재보험, 건강보험&lt;br /&gt;휴무/휴가 : 주5일 근무, 연차, 정기 휴가&lt;br /&gt;보상 제도 : 인센티브제&lt;br /&gt;건강관리 지원 : 건강검진, 본인 의료비 지원&lt;br /&gt;생활안정 지원 : 자녀 학자금 지원, 직원대출제도&lt;br /&gt;생활편의 지원 : 사원식당, 통근버스 운행&lt;br /&gt;경조사 지원 : 각종 경조금, 경조휴가제&lt;br /&gt;교육/여가 지원 : 자기계발비 지원&lt;br /&gt;기타 : 사내 헬스 센터/의무실/어린이집 운영&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;* 전형 절차&lt;/span&gt;&lt;br /&gt;기술 필기 -&gt; 실무자 면접 -&gt; 임원진 면접 -&gt; 합격자 발표&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;* 기술 필기&lt;/span&gt;&lt;br /&gt;다음의 문제 중 4문제 이상을 풀어 source code를 메일로 제출&lt;br /&gt;C++ 을 사용할 것. STL/MFC 사용하지 말 것.&lt;br /&gt;&lt;ul class="posts"&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/3n-1-problem.html" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;The 3n + 1 problem&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/prime-ring-problem.html" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;Prime Ring Problem&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/settlers-of-catan.html" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;The Settlers of Catan&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/anagram.html" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;Anagram&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/wormholes.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;Wormholes&lt;/a&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/re-connecting-computer-sites.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/re-connecting-computer-sites.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;Re-connecting Computer Sites&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/password-search.html" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;Password Search&lt;/a&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/2d-representations.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/2d-representations.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;2D Representations&lt;/a&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/telephone-directory-alphabetization.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/telephone-directory-alphabetization.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;Telephone Directory Alphabetization&lt;/a&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/dividing-up.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/dividing-up.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;Dividing up&lt;/a&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/overlapping-air-traffic-control-zones.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/overlapping-air-traffic-control-zones.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;Overlapping Air Traffic Control Zones&lt;/a&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/caesar-cypher.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/caesar-cypher.html" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;Caesar Cypher&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;* 제출 서류&lt;/span&gt; (담당자에게 이메일 제출)&lt;br /&gt;기술 필기 시험 결과 (program source code)&lt;br /&gt;이력서&lt;br /&gt;Project 경력 기술서&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;* 담당자&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vTLYzXn0_tE/SKwcve_RKsI/AAAAAAAAB3E/I1UpOBQxLrM/s1600-h/ccc.jpg" style="color: rgb(85, 136, 170); text-decoration: none; "&gt;&lt;img src="http://1.bp.blogspot.com/_vTLYzXn0_tE/SKwcve_RKsI/AAAAAAAAB3E/I1UpOBQxLrM/s320/ccc.jpg" alt="" id="BLOGGER_PHOTO_ID_5236592068822903490" border="0" style="margin-top: 0pt; margin-right: 10px; margin-bottom: 10px; margin-left: 0pt; float: left; cursor: pointer; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; "&gt;* 기타&lt;/span&gt;&lt;br /&gt;E-PRJ팀은 개발자를 구인 중입니다. programming을 직접 하실 분만 지원 부탁드립니다. (PM 직군은 신규 채용 예정이 없습니다.)&lt;br /&gt;문의 사항이 있으신 분은 담당자에게 연락 부탁드립니다.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;회사 이메일 주소가 안되시는 분은 개인 이메일 주소 naraofbaram at gmail.com 으로 보내주시기 바랍니다.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-8114204784337513272?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/8114204784337513272/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=8114204784337513272' title='1개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/8114204784337513272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/8114204784337513272'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/09/c-programmer_10.html' title='[구인] C++ Senior Programmer'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_vTLYzXn0_tE/SKwcve_RKsI/AAAAAAAAB3E/I1UpOBQxLrM/s72-c/ccc.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-7860497101930972039</id><published>2008-09-10T02:16:00.000-07:00</published><updated>2008-09-10T02:21:23.383-07:00</updated><title type='text'>[Job Offer] Program Manager</title><content type='html'>&lt;p class="MsoNormal" align="left" style="text-align:left;word-break:keep-all"&gt;&lt;span lang="EN-US"   style="Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-family:&amp;quot;;color:black;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;The SK C&amp;amp;C 3D Mirror World team is looking for program managers (PM) for creating a 3D virtual globe of the Earth. The successful PM has a graduate degree, preferable a PhD in a field closely related to the subject such as computer vision, photogrammetry, or GIS combined with 5+ years of relevant industry experience.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" align="left" style="text-align:left;word-break:keep-all"&gt;&lt;span lang="EN-US"   style="Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-family:&amp;quot;;color:black;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Expected are in-depth knowledge of digital image processing, digital photogrammetry, 2D and 3D geometry, multiple view geometry and a proven track record in developing software algorithm. Experience with true ortho-imagery, close range photogrammetry and oblique aerial imagery are especially relevant for this position.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" align="left" style="text-align:left;word-break:keep-all"&gt;&lt;span class="Apple-style-span"  style="font-family:'Times New Roman';"&gt;&lt;span class="Apple-style-span"  style=" ;font-family:Georgia;"&gt;To apply, please send resume and salary history/requirements in word/pdf documents to naraofbaram@skcc.com .&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-7860497101930972039?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/7860497101930972039/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=7860497101930972039' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/7860497101930972039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/7860497101930972039'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/09/job-offer-program-manager.html' title='[Job Offer] Program Manager'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-3673151408550370778</id><published>2008-09-09T03:06:00.000-07:00</published><updated>2008-10-05T23:36:30.041-07:00</updated><title type='text'>[Job Offer] C++ Senior Programmer</title><content type='html'>&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;" lang="EN-US"&gt;&lt;a href="http://www.skcc.com/"&gt;SK C&amp;amp;C&lt;/a&gt;, a Korean IT outsourcing and SI consulting company is seeking for Programmer / Senior Programmer for newly developing Earth Browser Project. The ideal applicant will be proficient in programming C++, specialized for Computer Vision / Photogrammetry. We are looking for a highly skilled, experienced, self-motivated and creative programmer who has solid coding, troubleshooting and analytical skills, an in-depth knowledge of C++ and who thrives on delivering unique solutions to customers within an advanced product incubation environment.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;Requirements :&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;  * Expert C++ programming skills&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;  * 5+ years of professional software development&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;  * MS or PhD in Computer Science, Applied Math or a related technical field&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;  * Excellent verbal and written communication skills in English&lt;br /&gt;&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;  * Self-motivation&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;Plusses :&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;  * &lt;span class="Apple-style-span"   style="border-collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;font-family:Georgia;font-size:16;"&gt;Expertise in developing state of the art 3D reconstruction algorithms from still photo or video data using a combination of computer vision and photogrammetric methodologies&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;&lt;span class="Apple-style-span"   style="border-collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;font-family:Georgia;font-size:16;"&gt;  * &lt;/span&gt;&lt;span class="Apple-style-span"   style="border-collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;font-family:Georgia;font-size:16;"&gt;Familiarity with image processing, mapping, and geospatial technologies&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;&lt;span class="Apple-style-span"   style="border-collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;font-family:Georgia;font-size:16;"&gt;  * &lt;/span&gt;&lt;span class="Apple-style-span"   style="border-collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;font-family:Georgia;font-size:16;"&gt;Graduate level study of computer vision, numerical analysis, and probability related disciplines&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;To apply, please send resume, salary history/requirements in word/pdf documents, and answers from following questions - from at least 3 questions -  in plain text to naraofbaram@skcc.com .&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;&lt;span class="Apple-style-span"   style="border-collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;font-family:Georgia;font-size:16;"&gt;&lt;ul class="posts"&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/3n-1-problem.html" style="color: rgb(153, 153, 153); text-decoration: none;"&gt;The 3n + 1 problem&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/prime-ring-problem.html" style="color: rgb(153, 153, 153); text-decoration: none;"&gt;Prime Ring Problem&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/settlers-of-catan.html" style="color: rgb(153, 153, 153); text-decoration: none;"&gt;The Settlers of Catan&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/anagram.html" style="color: rgb(153, 153, 153); text-decoration: none;"&gt;Anagram&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/wormholes.html" style="color: rgb(85, 136, 170); text-decoration: none;"&gt;Wormholes&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/re-connecting-computer-sites.html" style="color: rgb(85, 136, 170); text-decoration: none;"&gt;Re-connecting Computer Sites&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/password-search.html" style="color: rgb(85, 136, 170); text-decoration: none;"&gt;Password Search&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/2d-representations.html" style="color: rgb(85, 136, 170); text-decoration: none;"&gt;2D Representations&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/telephone-directory-alphabetization.html" style="color: rgb(85, 136, 170); text-decoration: none;"&gt;Telephone Directory Alphabetization&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/dividing-up.html" style="color: rgb(85, 136, 170); text-decoration: none;"&gt;Dividing up&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/overlapping-air-traffic-control-zones.html" style="color: rgb(85, 136, 170); text-decoration: none;"&gt;Overlapping Air Traffic Control Zones&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/09/caesar-cypher.html" style="color: rgb(85, 136, 170); text-decoration: none;"&gt;Caesar Cypher&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;&lt;br /&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;" lang="EN-US"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin: 0cm 0cm 0.0001pt;"&gt;&lt;br /&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;" lang="EN-US"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-3673151408550370778?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/3673151408550370778/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=3673151408550370778' title='1개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/3673151408550370778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/3673151408550370778'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/09/job-offer-senior-c-programmer.html' title='[Job Offer] C++ Senior Programmer'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-2019120899838570477</id><published>2008-09-09T03:02:00.001-07:00</published><updated>2008-09-09T03:03:11.983-07:00</updated><title type='text'>Re-connecting Computer Sites</title><content type='html'>&lt;span class="Apple-style-span"  style=" ;font-family:Gulim;"&gt;&lt;span style="color:#0000FF;"&gt;&lt;h1 align="center"&gt;Re-connecting Computer Sites&lt;/h1&gt;&lt;/span&gt;&lt;p align="justify"&gt;Consider the problem of selecting a set &lt;i&gt;T&lt;/i&gt; of high-speed lines for connecting &lt;i&gt;N&lt;/i&gt; computer sites, from a universe of &lt;i&gt;M&lt;/i&gt; high-speed lines each connecting a pair of computer sites. Each high-speed line has a given monthly cost, and the objective is to minimize the total cost of connecting the &lt;i&gt;N&lt;/i&gt; computer sites, where the total cost is the sum of the cost of each line included in set &lt;i&gt;T&lt;/i&gt;. Consider further that this problem has been solved earlier for the set of &lt;i&gt;N&lt;/i&gt; computer sites and &lt;i&gt;M&lt;/i&gt; high-speed lines, but that a few &lt;i&gt;K&lt;/i&gt; new high-speed lines have recently become available.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p align="justify"&gt;Your objective is to compute the new set &lt;i&gt;T'&lt;/i&gt; that may yield a cost lower than the original set &lt;i&gt;T&lt;/i&gt;, due to the additional &lt;i&gt;K&lt;/i&gt; new high-speed lines and when &lt;i&gt;M+K&lt;/i&gt; high-speed lines are available.&lt;span style="color:#0000FF;"&gt;&lt;h2&gt;Input&lt;/h2&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;b&gt;The input will contain several test cases, each of them as described below. Consecutive test cases are separated by a single blank line.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;The input is organized as follows:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;A line containing the number &lt;i&gt;N&lt;/i&gt; of computer sites, with &lt;i&gt;1 &lt;= N &lt;= 1000000&lt;/i&gt;, and where each computer site is referred by a number &lt;i&gt;i&lt;/i&gt;, &lt;i&gt;1 &lt;= i &lt;= N&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;The set &lt;i&gt;T&lt;/i&gt; of previously chosen high-speed lines, consisting of &lt;i&gt;N-1&lt;/i&gt; lines, each describing a high-speed line, and containing the numbers of the two computer sites the line connects and the monthly cost of using this line. All costs are integers.&lt;/li&gt;&lt;li&gt;A line containing the number &lt;i&gt;K&lt;/i&gt; of new additional lines, &lt;i&gt;1 &lt;= K &lt;= 10&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;&lt;i&gt;K&lt;/i&gt; lines, each describing a new high-speed line, and containing the numbers of the two computer sites the line connects and the monthly cost of using this line. All costs are integers.&lt;/li&gt;&lt;li&gt;A line containing the number &lt;i&gt;M&lt;/i&gt; of originally available high-speed lines, with &lt;i&gt;N-1 &lt;= M &lt;= N (N-1) / 2&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;&lt;i&gt;M&lt;/i&gt; lines, each describing one of the originally available high-speed lines, and containing the numbers of the two computer sites the line connects and the monthly cost of using this line. All costs are integers.&lt;/li&gt;&lt;/ul&gt;&lt;span style="color:#0000FF;"&gt;&lt;h2&gt;Output&lt;/h2&gt;&lt;/span&gt;&lt;b&gt;For each test case, the output must follow the description below. The outputs of two consecutive cases will be separated by a blank line.&lt;/b&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p align="justify"&gt;The output file must have one line containing the original cost of connecting the &lt;i&gt;N&lt;/i&gt;computer sites with &lt;i&gt;M&lt;/i&gt; high-speed lines and another line containing the new cost of connecting the &lt;i&gt;N&lt;/i&gt; computer sites with &lt;i&gt;M+K&lt;/i&gt; high-speed lines. If the new cost equals the original cost, the same value is written twice.&lt;span style="color:#0000FF;"&gt;&lt;h2&gt;Sample Input&lt;/h2&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;5 &lt;/pre&gt;&lt;pre&gt;1 2 5 &lt;/pre&gt;&lt;pre&gt;1 3 5 &lt;/pre&gt;&lt;pre&gt;1 4 5 &lt;/pre&gt;&lt;pre&gt;1 5 5 &lt;/pre&gt;&lt;pre&gt;1&lt;/pre&gt;&lt;pre&gt;2 3 2 &lt;/pre&gt;&lt;pre&gt;6 &lt;/pre&gt;&lt;pre&gt;1 2 5 &lt;/pre&gt;&lt;pre&gt;1 3 5 &lt;/pre&gt;&lt;pre&gt;1 4 5 &lt;/pre&gt;&lt;pre&gt;1 5 5 &lt;/pre&gt;&lt;pre&gt;3 4 8 &lt;/pre&gt;&lt;pre&gt;4 5 8 &lt;/pre&gt;&lt;span style="color:#0000FF;"&gt;&lt;h2&gt;Sample Output&lt;/h2&gt;&lt;/span&gt;&lt;pre&gt;20 &lt;/pre&gt;&lt;pre&gt;17 &lt;/pre&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  white-space: pre;font-family:-webkit-monospace;font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-2019120899838570477?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/2019120899838570477/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=2019120899838570477' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/2019120899838570477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/2019120899838570477'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/09/re-connecting-computer-sites.html' title='Re-connecting Computer Sites'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-2809361933465030103</id><published>2008-09-09T03:01:00.001-07:00</published><updated>2008-09-09T05:18:46.047-07:00</updated><title type='text'>Password Search</title><content type='html'>&lt;span class="Apple-style-span"  style=" ;font-family:Gulim;"&gt;&lt;span style="color:#0000FF;"&gt;&lt;h1 align="center"&gt;Password Search&lt;/h1&gt;&lt;/span&gt;&lt;p align="justify"&gt;Being able to send encoded messages during World War II was very important to the Allies. The messages were always sent after being encoded with a known password. Having a fixed password was of course insecure, thus there was a need to change it frequently. However, a mechanism was necessary to send the new password. One of the mathematicians working in the cryptographic team had a clever idea that was to send the password hidden within the message itself. The interesting point was that the receiver of the message only had to know the size of the password and then search for the password within the received text.&lt;/p&gt;&lt;p align="justify"&gt;A password with size N can be found by searching the text for the most frequent substring with N characters. After finding the password, all the substrings that coincide with the password are removed from the encoded text. Now, the password can be used to decode the message.&lt;span style="color:#0000FF;"&gt;&lt;h2&gt;Problem&lt;/h2&gt;&lt;/span&gt;Your mission has been simplified as you are only requested to write a program that, given the size of the password and the encoded message, determines the password following the strategy given above.&lt;/p&gt;&lt;p align="justify"&gt;To illustrate your task, consider the following example in which the password size is three (N=3) and the text message is just &lt;tt&gt;baababacb&lt;/tt&gt;. The password would then be &lt;tt&gt;aba&lt;/tt&gt; because this is the substring with size 3 that appears most often in the whole text (it appears twice) while the other six different substrings appear only once (&lt;tt&gt;baa&lt;/tt&gt; ; &lt;tt&gt;aab&lt;/tt&gt; ; &lt;tt&gt;bab&lt;/tt&gt; ; &lt;tt&gt;bac&lt;/tt&gt; ; &lt;tt&gt;acb&lt;/tt&gt;).&lt;span style="color:#0000FF;"&gt;&lt;h2&gt;Input&lt;/h2&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;The input file contains several test cases, each of them consists of one line with the size of the password, 0 &lt; N ≤10, followed by the text representing the encoded message. To simplify things, you can assume that the text only includes lower case letters.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#0000FF;"&gt;&lt;h2&gt;Output&lt;/h2&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p align="justify"&gt;For each test case, your program should print as output a line with the password string.&lt;span style="color:#0000FF;"&gt;&lt;h2&gt;Sample Input&lt;/h2&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;3 baababacb &lt;/pre&gt;&lt;span style="color:#0000FF;"&gt;&lt;h2&gt;Sample Output&lt;/h2&gt;&lt;/span&gt;&lt;pre&gt;aba   &lt;/pre&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  white-space: pre;font-family:-webkit-monospace;font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-2809361933465030103?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/2809361933465030103/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=2809361933465030103' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/2809361933465030103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/2809361933465030103'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/09/password-search.html' title='Password Search'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-4176837090379053313</id><published>2008-09-09T03:00:00.001-07:00</published><updated>2008-09-09T03:00:40.722-07:00</updated><title type='text'>2D Representations</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Gulim; "&gt;&lt;span style="font-family:Arial;font-size:85%;color:#000000;"&gt;&lt;p align="center"&gt;&lt;b&gt;&lt;span style="font-family:Arial;font-size:100%;color:#000000;"&gt;2D Representations&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="back"&gt;Background&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;   A 2D raster image is defined by a matrix of points or pixels. In a black and white raster image, each pixel (a matrix element) can be black (full) or white (empty). There are several methods known to represent a raster image. Two of them, are the "Quadtree" and the "Run Length code".&lt;br /&gt;   In a Quadtree, the matrix is preferably square with a length that is a power of two. One image is represented following a recursive visit: the image is divided in four image cells (accordingly to the order shown in Figure 1) and each cell is evaluated to be Full, Empty, or Partial. When a Partial cell is found, it is recursively subdivided in four cells and the same principle is repeated again and again until the cell is completely Full or completely Empty. The structure of a quadtree is a tree of nodes and each node can have from zero to four descendents (see Figure 1).&lt;/p&gt;&lt;p align="center"&gt;&lt;img src="http://icpcres.ecs.baylor.edu/onlinejudge/external/8/p874.gif" width="498" height="159" alt="" border="0" /&gt;&lt;br /&gt;&lt;b&gt;Figure 1&lt;/b&gt; - One image, the order of visit and the quadtree&lt;/p&gt;&lt;p&gt;   In the Run Length code, pixels are grouped in series of empty pixels, full pixels and empty pixels again, etc. In this way, the image can be represented as a series of numbers, being each number of pixels in a group (we can assume that the first group is composed of full pixels). Using the image of Figure 1 as an example, the run length code is: 0, 20, 4, 4, 9, 1, 1, 1, 4, 1, 1, 2, 4, 4, 4, 4 (considering the lower left pixel as the first one).&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="problem"&gt;Problem&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;   Given an image in the form of a quadtree, the problem is to obtain the correspondent run length code. The image maximum size is 256*256 and the origin of coordinates is the lower left pixel.&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="input"&gt;Input&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;b&gt;The input begins with a single positive integer on a line by itself indicating the number of the cases following, each of them as described below. This line is followed by a blank line, and there is also a blank line between two consecutive inputs.&lt;/b&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;   The first line of the input contains the length of the image and the second line contains the number of nodes &lt;b&gt;&lt;i&gt;N&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;/i&gt;to be considered (both in integer format). Each one of the following &lt;b&gt;&lt;i&gt;N&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;/i&gt; lines describes a different node (in sequence, starting with node 1), with four fields separated by a space. Each field may be one character F (full) or E (empty) or a number that is the index of a descendent node.&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="output"&gt;Output&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;b&gt;For each test case, the output must follow the description below. The outputs of two consecutive cases will be separated by a blank line.&lt;/b&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;   One line with the run length code of the given image (integers separated by a space). Note that the first group is assumed to be Full.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Sample Input&lt;/b&gt;&lt;br /&gt;1&lt;br /&gt;&lt;br /&gt;8&lt;br /&gt;5&lt;br /&gt;E 2 F 3&lt;br /&gt;E E F F&lt;br /&gt;4 5 E E&lt;br /&gt;F E E F&lt;br /&gt;F E E E&lt;/p&gt;&lt;p&gt;&lt;b&gt;Sample Output&lt;/b&gt;&lt;br /&gt;0 20 4 4 9 1 1 1 4 1 1 2 4 4 4 4&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-4176837090379053313?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/4176837090379053313/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=4176837090379053313' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/4176837090379053313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/4176837090379053313'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/09/2d-representations.html' title='2D Representations'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-7808297011727239753</id><published>2008-09-09T02:58:00.001-07:00</published><updated>2008-09-09T02:59:43.738-07:00</updated><title type='text'>Telephone Directory Alphabetization</title><content type='html'>&lt;span class="Apple-style-span"  style=" ;font-family:'times new roman';"&gt;&lt;h1&gt;&lt;center&gt;&lt;table bg=""  style="color:#0060F0;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;&lt;span style="font-size:180%;color:#C0FFFF;"&gt; &lt;a name="SECTION0001000000000000000000"&gt; Telephone Directory Alphabetization&lt;/a&gt; &lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/center&gt;&lt;/h1&gt;&lt;p&gt;Based on its success in contracting previous software development efforts to programming contest teams, the String &amp;amp; Tin Can (S&amp;amp;TC) Telephone Company has now decided to produce its telephone directories internally. Your team has been hired to develop a program that will take subscriber names and telephone numbers and alphabetize them into a list for printing.&lt;/p&gt;&lt;p&gt;Telephone directories have traditionally used special conventions for alphabetization, and S&amp;amp;TC wants your program to use these conventions. Each subscriber listing consists of one or more ``words,'' where each word is separated from the others by spaces or non-alphanumeric characters. Directories only use the letters A through Z for sorting, ignoring case. Therefore, names that include words comprised of digits or capital letters require special processing.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;A listing may contain a word that is a decimal number. Listings with numbers in them appear in the alphabetized list in the same location they would if the numbers were spelled out in English. For example, ``50 Star Company'' might appear just before ``Fifty Star Vending'' in the list. Numbers are permitted to be in the range 0-999,999,999. Letters and digits will not appear together in the same word.&lt;/p&gt;&lt;p&gt;All special (non-alphanumeric) characters are to be treated as spaces. ``Penny-Wise Corporation'' would appear after ``Penny Saver,'' but before ``Pennypinching Company.'' Multiple spaces or non-alphanumeric characters are treated as a single space when sorting. Special characters will not appear at the beginning of a listing.&lt;/p&gt;&lt;p&gt;Words that are comprised of all capital letters are assumed to be initials or acronyms, and are treated as if spaces appeared between each letter. Hence, ``KAT Shop'' would appear at the beginning of the K listings, before ``K-B Enterprises'' and ``K Warehouse''.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070E8;"&gt;&lt;a name="SECTION0001001000000000000000"&gt;Input&lt;/a&gt; &lt;/span&gt;&lt;/h2&gt;Input to your program will be a list of subscribers, one per line. The first seven digits will be the telephone number, and the rest of the line will be the name of the subscriber as it is to appear in the telephone directory.&lt;p&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070E8;"&gt;&lt;a name="SECTION0001002000000000000000"&gt;Output&lt;/a&gt; &lt;/span&gt;&lt;/h2&gt;Your program is to alphabetically sort the subscriber names according to the rules above and print the listing in order. Each line should contain the subscriber name as it appeared in the input in the first 52 positions, left justified and space filled, followed by the seven digit telephone number (including a space between the third and fourth digits) in columns 56 through 63. The telephone number is to be immediately followed by the end of line.&lt;p&gt;Your program need not handle more than 1,000 subscribers-none of the towns S&amp;amp;TC serves in Swamp County have populations larger than that.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070E8;"&gt;&lt;a name="SECTION0001003000000000000000"&gt;Sample Input&lt;/a&gt; &lt;/span&gt;&lt;/h2&gt;&lt;pre&gt;8936251KAT Shop &lt;/pre&gt;&lt;pre&gt;7362812Penny Saver, Inc. &lt;/pre&gt;&lt;pre&gt;7251887Kate's Company &lt;/pre&gt;&lt;pre&gt;8372974Fine Foods &lt;/pre&gt;&lt;pre&gt;9273664Five Star Vending &lt;/pre&gt;&lt;pre&gt;3523984K-B Enterprises &lt;/pre&gt;&lt;pre&gt;723621899 Cents Only Store &lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070E8;"&gt;&lt;a name="SECTION0001004000000000000000"&gt;Sample Output&lt;/a&gt; &lt;/span&gt;&lt;/h2&gt;&lt;pre&gt;Fine Foods                                             837 2974 &lt;/pre&gt;&lt;pre&gt;Five Star Vending                                      927 3664 &lt;/pre&gt;&lt;pre&gt;KAT Shop                                               893 6251 &lt;/pre&gt;&lt;pre&gt;K-B Enterprises                                        352 3984 &lt;/pre&gt;&lt;pre&gt;Kate's Company                                         725 1887 &lt;/pre&gt;&lt;pre&gt;99 Cents Only Store                                    723 6218 &lt;/pre&gt;&lt;pre&gt;Penny Saver, Inc.                                      736 2812 &lt;/pre&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  white-space: pre;font-family:-webkit-monospace;font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-7808297011727239753?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/7808297011727239753/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=7808297011727239753' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/7808297011727239753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/7808297011727239753'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/09/telephone-directory-alphabetization.html' title='Telephone Directory Alphabetization'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-4950921975775006932</id><published>2008-09-09T02:56:00.001-07:00</published><updated>2008-09-09T02:57:48.872-07:00</updated><title type='text'>Dividing up</title><content type='html'>&lt;div&gt;&lt;span class="Apple-style-span"  style=" ;font-family:'times new roman';"&gt;&lt;h1&gt;&lt;center&gt;&lt;table bg=""  style="color:#0060F0;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;&lt;span style="font-size:180%;color:#C0FFFF;"&gt; &lt;a name="SECTION0001000000000000000000"&gt; Dividing up&lt;/a&gt; &lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/center&gt;&lt;/h1&gt;&lt;p&gt;Marsha and Bill own a collection of marbles. They want to split the collection among themselves so that both receive an equal share of the marbles. This would be easy if all the marbles had the same value, because then they could just split the collection in half. But unfortunately, some of the marbles are larger, or more beautiful than others. So, Marsha and Bill start by assigning a value, a natural number between one and six, to each marble. Now they want to divide the marbles so that each of them gets the same total value.&lt;/p&gt;&lt;p&gt;Unfortunately, they realize that it might be impossible to divide the marbles in this way (even if the total value of all marbles is even). For example, if there are one marble of value 1, one of value 3 and two of value 4, then they cannot be split into sets of equal value. So, they ask you to write a program that checks whether there is a fair partition of the marbles.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070E8;"&gt;&lt;a name="SECTION0001001000000000000000"&gt;Input&lt;/a&gt; &lt;/span&gt;&lt;/h2&gt;&lt;p&gt;Each line in the input file describes one collection of marbles to be divided. The lines consist of six non-negative integers &lt;img width="79" height="30" align="MIDDLE" border="0" src="http://icpcres.ecs.baylor.edu/onlinejudge/external/7/711img1.gif" alt="$n_1,\dots,n_6$" /&gt;, where &lt;i&gt;n&lt;/i&gt;&lt;sub&gt;&lt;i&gt;i&lt;/i&gt;&lt;/sub&gt; is the number of marbles of value &lt;i&gt;i&lt;/i&gt;. So, the example from above would be described by the input-line ``&lt;tt&gt;1 0 1 2 0 0&lt;/tt&gt;''. The maximum total number of marbles will be 20000.&lt;/p&gt;&lt;p&gt;The last line of the input file will be ``&lt;tt&gt;0 0 0 0 0 0&lt;/tt&gt;''; do not process this line.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070E8;"&gt;&lt;a name="SECTION0001002000000000000000"&gt;Output&lt;/a&gt; &lt;/span&gt;&lt;/h2&gt;&lt;p&gt;For each colletcion, output ``&lt;tt&gt;Collection #&lt;/tt&gt;&lt;i&gt;k&lt;/i&gt;&lt;tt&gt;:&lt;/tt&gt;'', where &lt;i&gt;k&lt;/i&gt; is the number of the test case, and then either ``&lt;tt&gt;Can be divided.&lt;/tt&gt;'' or ``&lt;tt&gt;Can't be divided.&lt;/tt&gt;''.&lt;/p&gt;&lt;p&gt;Output a blank line after each test case.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070E8;"&gt;&lt;a name="SECTION0001003000000000000000"&gt;Sample Input&lt;/a&gt; &lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;1 0 1 2 0 0 &lt;/pre&gt;&lt;pre&gt;1 0 0 0 1 1 &lt;/pre&gt;&lt;pre&gt;0 0 0 0 0 0 &lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070E8;"&gt;&lt;a name="SECTION0001004000000000000000"&gt;Sample Output&lt;/a&gt; &lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;Collection #1: &lt;/pre&gt;&lt;pre&gt;Can't be divided.  &lt;/pre&gt;&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt;Collection #2: &lt;/pre&gt;&lt;pre&gt;Can be divided. &lt;/pre&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  white-space: pre;font-family:-webkit-monospace;font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-4950921975775006932?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/4950921975775006932/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=4950921975775006932' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/4950921975775006932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/4950921975775006932'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/09/dividing-up.html' title='Dividing up'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-3954660813251145126</id><published>2008-09-09T02:51:00.000-07:00</published><updated>2008-09-09T02:56:05.223-07:00</updated><title type='text'>Overlapping Air Traffic Control Zones</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Gulim; "&gt;&lt;span style="color:#0000FF;"&gt;&lt;h1 align="center"&gt;Overlapping Air Traffic Control Zones&lt;/h1&gt;&lt;/span&gt;&lt;p align="justify"&gt;Optimization of air traffic flow is one of the essential ways for airlines to maintain economic viability. All too often, however, weather and other anomalous conditions disrupt air traffic flow resulting in significant costs. Automation systems for optimizing flows are not currently able to quickly reconfigure when path planning must account for dynamic conditions such as moving weather systems. Human intervention is usually used to decide route modifications.&lt;/p&gt;&lt;p align="justify"&gt;Decisions on route modification for one aircraft must take into account neighboring aircraft safe zones in order to minimize possible collision risks. We will consider a 3D model in which the safe zone for one aircraft is represented as a parallelepiped.&lt;/p&gt;&lt;p align="justify"&gt;Evaluation of aircraft collision risks, in this model, can be done by calculating the volume of the intersecting safe zones of the aircrafts in a given air traffic control zone. In other words, we need to be able to determine the volume of intersecting parallelepipeds.&lt;span style="color:#0000FF;"&gt;&lt;h2&gt;Problem&lt;/h2&gt;&lt;/span&gt;Consider a number of parallelepipeds in space, having all the edges parallel to the axes. Your task is to write a program that outputs the volume occupied simultaneously by two or more parallelepipeds. Each parallelepiped is characterized by 6 integer values, the coordinates of two of its vertices&lt;/p&gt;&lt;p&gt;&lt;it&gt;(x&lt;sub&gt;1&lt;/sub&gt;,y&lt;sub&gt;1&lt;/sub&gt;,z&lt;sub&gt;1&lt;/sub&gt;), (x&lt;sub&gt;2&lt;/sub&gt;, y&lt;sub&gt;2&lt;/sub&gt;,z&lt;sub&gt;2&lt;/sub&gt;)&lt;/it&gt; with &lt;it&gt;x&lt;sub&gt;1&lt;/sub&gt; &lt; x&lt;sub&gt;2&lt;/sub&gt;&lt;/it&gt;, &lt;it&gt;y&lt;sub&gt;1&lt;/sub&gt; &lt; y&lt;sub&gt;2&lt;/sub&gt;&lt;/it&gt; and &lt;it&gt;z&lt;sub&gt;1&lt;/sub&gt; &lt; z&lt;sub&gt;2&lt;/sub&gt;&lt;/it&gt;&lt;span style="color:#0000FF;"&gt;&lt;h2&gt;Input&lt;/h2&gt;&lt;/span&gt;The input file contains several test cases, each of them consists of an integer &lt;it&gt;0 ≤ n ≥ 15&lt;/it&gt; in the first line followed by &lt;it&gt;n&lt;/it&gt; lines of 6-tuples of integers describing the parallelepipeds. The total area occupied does not exceed &lt;it&gt;5x10&lt;sup&gt;8&lt;/sup&gt;&lt;/it&gt;.&lt;span style="color:#0000FF;"&gt;&lt;h2&gt;Output&lt;/h2&gt;&lt;/span&gt;For each test case, output on a line by itself an integer corresponding to the total volume occupied simultaneously by two or more parallelepipeds.&lt;span style="color:#0000FF;"&gt;&lt;h2&gt;Sample Input&lt;/h2&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;  5&lt;br&gt; 1 1 3 3 3&lt;br&gt;   1 1 1 3 3 3&lt;br&gt;   1 1 1 3 3 3&lt;br&gt;   400000000 400000000 400000000 400000001 400000001 400000002&lt;br&gt;   400000000 400000000 400000000 400000002 400000004 400000001 &lt;/pre&gt;&lt;span style="color:#0000FF;"&gt;&lt;h2&gt;Sample Output&lt;/h2&gt;&lt;/span&gt;&lt;pre&gt;  9&lt;/pre&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-3954660813251145126?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/3954660813251145126/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=3954660813251145126' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/3954660813251145126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/3954660813251145126'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/09/overlapping-air-traffic-control-zones.html' title='Overlapping Air Traffic Control Zones'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-6391578002633230722</id><published>2008-09-09T02:50:00.000-07:00</published><updated>2008-09-09T02:51:22.095-07:00</updated><title type='text'>Caesar Cypher</title><content type='html'>&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman'; "&gt;&lt;h1&gt;&lt;center&gt;&lt;table bg style="color:#0060F0;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;&lt;span style="font-size:180%;color:#C0FFFF;"&gt; &lt;a name="SECTION0001000000000000000000"&gt; Caesar Cypher&lt;/a&gt; &lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/center&gt;&lt;/h1&gt;&lt;p&gt;One of the earliest encrypting systems is attributed to Julius Caesar: if the letter to be encrypted is the &lt;i&gt;N&lt;/i&gt;th letter in the alphabet, replace it with the (&lt;i&gt;N&lt;/i&gt;+&lt;i&gt;K&lt;/i&gt;)th where &lt;i&gt;K&lt;/i&gt; is some fixed integer (Caesar used &lt;i&gt;K&lt;/i&gt; = 3). We usually treat a space as zero and all arithemtic is then done modulo 27. Thus for &lt;i&gt;K&lt;/i&gt; = 1 the message `&lt;tt&gt;ATTACK AT DAWN&lt;/tt&gt;' becomes `&lt;tt&gt;BUUBDLABUAEBXO&lt;/tt&gt;'.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Decrypting such a message is trivial since one only needs to try 26 different values of &lt;i&gt;K&lt;/i&gt;. This process is aided by knowledge of the language, since then one can determine when the decrypted text forms recognisable words. If one does not know the language, then a dictionary would be necessary.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Write a program that will read in a dictionary and some encrypted text, determine the value of &lt;i&gt;K&lt;/i&gt; that was used, and then decrypt the cyphertext to produce the original message. The original message contained only letters and spaces and has been encrypted using the above method. The most suitable value of &lt;i&gt;K&lt;/i&gt; will be the one which produces the most matches with the words in the dictionary.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070E8;"&gt;&lt;a name="SECTION0001001000000000000000"&gt;Input&lt;/a&gt; &lt;/span&gt;&lt;/h2&gt;Input will consist of a dictionary and the encrypted text. The dictionary will consist of no more than 100 lines each containing a word in uppercase characters and not more than 20 characters in length. The dictionary portion will be terminated by a line consisting of a single `&lt;tt&gt;#&lt;/tt&gt;'. The encrypted text will follow immediately and will consist of a single line containing no more than 250 characters. Note that the dictionary will not necessarily contain all the words in the original text, although it will certainly contain a large portion of them. It may also contain words that are not in the original text. The dictionary will not appear in any particular order.&lt;p&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070E8;"&gt;&lt;a name="SECTION0001002000000000000000"&gt;Output&lt;/a&gt; &lt;/span&gt;&lt;/h2&gt;Output will consist of the decrypted text. Lines should be as long as possible, but not exceeding 60 characters and no word may cross a linebreak.&lt;p&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070E8;"&gt;&lt;a name="SECTION0001003000000000000000"&gt;Sample Input&lt;/a&gt; &lt;/span&gt;&lt;/h2&gt;&lt;pre&gt;THIS DAWN THAT THE ZORRO OTHER AT THING # BUUBDLA PSSPABUAEBXO &lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070E8;"&gt;&lt;a name="SECTION0001004000000000000000"&gt;Sample Output&lt;/a&gt; &lt;/span&gt;&lt;/h2&gt;&lt;pre&gt;ATTACK ZORRO AT DAWN &lt;/pre&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 13px; white-space: pre;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-6391578002633230722?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/6391578002633230722/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=6391578002633230722' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/6391578002633230722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/6391578002633230722'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/09/caesar-cypher.html' title='Caesar Cypher'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-613547526316004961</id><published>2008-08-20T06:20:00.000-07:00</published><updated>2008-09-09T03:35:01.639-07:00</updated><title type='text'>C++ Programmer 구인 공지</title><content type='html'>SK C&amp;amp;C E-PRJ팀에서는 C++ Programmer를 모집합니다.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:100%;"&gt;* 담당 업무&lt;/span&gt;&lt;br /&gt;항공 사진을 이용한 3D Mirror World Production System 개발&lt;br /&gt;cluster 로 이루어진 production system 에서 동작할 대용량 이미지 처리 s/w 구현&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;* 지원 자격 및 우대 사항&lt;/span&gt;&lt;br /&gt;성별/연령/학력/경력 불문&lt;br /&gt;C/C++ Expert&lt;br /&gt;팀 작업에 익숙하고 다른 사람들과의 커뮤니케이션에 문제가 없는 자&lt;br /&gt;영문 기술 문서 읽기에 익숙하신 분&lt;br /&gt;다양한 상용/공개 라이브러리를 사용해본 경험자 우대&lt;br /&gt;GIS/Computer Graphics/Computer Vision/Numerical Analysis 경험자 우대&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;* 대우&lt;/span&gt;&lt;br /&gt;정직원&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;* 연봉&lt;/span&gt;&lt;br /&gt;추후 협의&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;* 복리후생&lt;/span&gt;&lt;br /&gt;연금/보험 : 국민연금, 고용보험, 산재보험, 건강보험&lt;br /&gt;휴무/휴가 : 주5일 근무, 연차, 정기 휴가&lt;br /&gt;보상 제도 : 인센티브제&lt;br /&gt;건강관리 지원 : 건강검진, 본인 의료비 지원&lt;br /&gt;생활안정 지원 : 자녀 학자금 지원, 직원대출제도&lt;br /&gt;생활편의 지원 : 사원식당, 통근버스 운행&lt;br /&gt;경조사 지원 : 각종 경조금, 경조휴가제&lt;br /&gt;교육/여가 지원 : 자기계발비 지원&lt;br /&gt;기타 : 사내 헬스 센터/의무실/어린이집 운영&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;* 전형 절차&lt;/span&gt;&lt;br /&gt;기술 필기 -&gt; 실무자 면접 -&gt; 임원진 면접 -&gt; 합격자 발표&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;* 기술 필기&lt;/span&gt;&lt;br /&gt;다음의 8문제 중 3문제 이상을 풀어 source code를 메일로 제출&lt;br /&gt;C++ 을 사용할 것. STL/MFC 사용하지 말 것.&lt;br /&gt;&lt;ul class="posts"&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/3n-1-problem.html"&gt;The 3n + 1 problem&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/brick-wall-patterns.html"&gt;Brick Wall Patterns&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/prime-ring-problem.html"&gt;Prime Ring Problem&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/system-dependencies.html"&gt;System Dependencies&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/settlers-of-catan.html"&gt;The Settlers of Catan&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/partition-of-cake.html"&gt;The partition of a cake&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/anagram.html"&gt;Anagram&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/skyline-problem.html"&gt;The Skyline Problem&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://coding-quiz.blogspot.com/2008/08/wormholes.html"&gt;Wormholes&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;* 제출 서류&lt;/span&gt; (담당자에게 이메일 제출)&lt;br /&gt;기술 필기 시험 결과 (program source code)&lt;br /&gt;이력서&lt;br /&gt;Project 경력 기술서&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;* 담당자&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vTLYzXn0_tE/SKwcve_RKsI/AAAAAAAAB3E/I1UpOBQxLrM/s1600-h/ccc.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://1.bp.blogspot.com/_vTLYzXn0_tE/SKwcve_RKsI/AAAAAAAAB3E/I1UpOBQxLrM/s320/ccc.jpg" alt="" id="BLOGGER_PHOTO_ID_5236592068822903490" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;* 기타&lt;/span&gt;&lt;br /&gt;E-PRJ팀은 개발자를 구인 중입니다. programming을 직접 하실 분만 지원 부탁드립니다. (PM 직군은 신규 채용 예정이 없습니다.)&lt;br /&gt;문의 사항이 있으신 분은 담당자에게 연락 부탁드립니다.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-613547526316004961?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/613547526316004961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/613547526316004961'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/08/c-programmer.html' title='C++ Programmer 구인 공지'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_vTLYzXn0_tE/SKwcve_RKsI/AAAAAAAAB3E/I1UpOBQxLrM/s72-c/ccc.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-5293943507875205281</id><published>2008-08-20T06:13:00.000-07:00</published><updated>2008-08-20T06:16:37.036-07:00</updated><title type='text'>LC-Display</title><content type='html'>&lt;h1&gt;&lt;br /&gt;&lt;center&gt;&lt;table bg="" style="color: rgb(0, 96, 240);"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;&lt;span style="color: rgb(192, 255, 255);font-size:180%;" &gt; &lt;a name="SECTION0001000000000000000000"&gt; LC-Display&lt;/a&gt; &lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/center&gt; &lt;/h1&gt;  &lt;p&gt; A friend of you has just bought a new computer. Until now, the most powerful computer he ever used has been a pocket calculator. Now, looking at his new computer, he is a bit disappointed, because he liked the LC-display of his calculator so much. So you decide to write  a program that displays numbers in an LC-display-like style on his computer.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color: rgb(0, 112, 232);"&gt;&lt;a name="SECTION0001001000000000000000"&gt; Input&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt;  &lt;p&gt; The input file contains several lines, one for each number to be displayed. Each line contains two integers &lt;i&gt;s&lt;/i&gt;, &lt;i&gt;n&lt;/i&gt; ( &lt;!-- MATH: $1 \le s \le 10, 0 \le n \le 99\,999\,999$ --&gt; &lt;img src="http://icpcres.ecs.baylor.edu/onlinejudge/external/7/706img1.gif" alt="$1 \le s \le 10, 0 \le n \le 99\,999\,999$" width="234" align="middle" border="0" height="30" /&gt;), where &lt;i&gt;n&lt;/i&gt; is the number to be displayed and &lt;i&gt;s&lt;/i&gt; is the size in which it shall be displayed.  &lt;/p&gt;&lt;p&gt; The input file will be terminated by a line containing two zeros. This line should not be processed.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color: rgb(0, 112, 232);"&gt;&lt;a name="SECTION0001002000000000000000"&gt; Output&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt;  &lt;p&gt; Output the numbers given in the input file in an LC-display-style using &lt;i&gt;s&lt;/i&gt; ``&lt;tt&gt;-&lt;/tt&gt;'' signs for the horizontal segments and &lt;i&gt;s&lt;/i&gt; ``&lt;tt&gt;|&lt;/tt&gt;'' signs for the vertical ones. Each digit occupies exactly &lt;i&gt;s&lt;/i&gt;+2 columns and 2&lt;i&gt;s&lt;/i&gt;+3 rows. (Be sure to fill all the white space occupied by the digits with blanks, also for the last digit.) There has to be exactly one column of blanks between two digits.  &lt;/p&gt;&lt;p&gt; Output a blank line after each number.  (You will find a sample of each digit in the sample output.)  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color: rgb(0, 112, 232);"&gt;&lt;a name="SECTION0001003000000000000000"&gt; Sample Input&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt;  &lt;p&gt; &lt;/p&gt;&lt;pre&gt;2 12345&lt;br /&gt;3 67890&lt;br /&gt;0 0&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color: rgb(0, 112, 232);"&gt;&lt;a name="SECTION0001004000000000000000"&gt; Sample Output&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt;  &lt;p&gt; &lt;/p&gt;&lt;pre&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vTLYzXn0_tE/SKwZHM6YyAI/AAAAAAAAB20/CLwSvh5GtCk/s1600-h/aaa.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://3.bp.blogspot.com/_vTLYzXn0_tE/SKwZHM6YyAI/AAAAAAAAB20/CLwSvh5GtCk/s320/aaa.jpg" alt="" id="BLOGGER_PHOTO_ID_5236588078240942082" border="0" /&gt;&lt;/a&gt;&lt;/pre&gt;  &lt;p&gt;  &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-5293943507875205281?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/5293943507875205281/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=5293943507875205281' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/5293943507875205281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/5293943507875205281'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/08/lc-display.html' title='LC-Display'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_vTLYzXn0_tE/SKwZHM6YyAI/AAAAAAAAB20/CLwSvh5GtCk/s72-c/aaa.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-4266608245765095877</id><published>2008-08-20T06:03:00.001-07:00</published><updated>2008-08-20T06:03:16.602-07:00</updated><title type='text'>Brick Wall Patterns</title><content type='html'>&lt;span style="color:#0000ff;"&gt;&lt;h1 align="center"&gt;Brick Wall Patterns&lt;/h1&gt; &lt;/span&gt;  &lt;p align="justify"&gt; If we want to build a brick wall out of the usual size of brick which has a length twice as long as its height, and if our wall is to be two units tall, we can make our wall in a number of patterns, depending on how long we want it. From the figure one observe that:  &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;center&gt; &lt;img src="http://icpcres.ecs.baylor.edu/onlinejudge/external/9/p900.gif" /&gt; &lt;/center&gt; &lt;ul&gt;&lt;li&gt; There is just one wall pattern which is 1 unit wide - made by putting the brick on its end.  &lt;/li&gt;&lt;li&gt; There are 2 patterns for a wall of length 2: two side-ways bricks laid on top of each other and two bricks long-ways up put next to each other.  &lt;/li&gt;&lt;li&gt; There are three patterns for walls of length 3. &lt;/li&gt;&lt;/ul&gt;  How many patterns can you find for a wall of length 4? And, for a wall of length 5?  &lt;span style="color:#0000ff;"&gt;&lt;h2&gt;Problem&lt;/h2&gt;&lt;/span&gt;  Your task is to write a program that given the length of a wall, determines how many patterns there may be for a wall of that length.   &lt;span style="color:#0000ff;"&gt;&lt;h2&gt;Intput&lt;/h2&gt;&lt;/span&gt;  Your program receives a sequence of positive integers, one per line, each representing the length of a wall. The maximum value for the wall is length 50. The input terminates with a 0.  &lt;span style="color:#0000ff;"&gt;&lt;h2&gt;Output&lt;/h2&gt;&lt;/span&gt;  For each wall length given in the input, your program must output the corresponding number of different patterns for such a wall in a separate line.  &lt;span style="color:#0000ff;"&gt;&lt;h2&gt;Sample Intput&lt;/h2&gt;&lt;/span&gt; &lt;pre&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;0&lt;br /&gt;&lt;/pre&gt;  &lt;span style="color:#0000ff;"&gt;&lt;h2&gt;Sample Output&lt;/h2&gt;&lt;/span&gt; &lt;pre&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-4266608245765095877?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/4266608245765095877/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=4266608245765095877' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/4266608245765095877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/4266608245765095877'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/08/brick-wall-patterns.html' title='Brick Wall Patterns'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-4750522343029827061</id><published>2008-08-20T05:56:00.001-07:00</published><updated>2008-08-20T05:56:39.917-07:00</updated><title type='text'>Wormholes</title><content type='html'>&lt;h1&gt;&lt;center&gt;&lt;table bg style="color:#0060f0;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;&lt;span style="font-size:180%;color:#c0ffff;"&gt; &lt;a name="SECTION0001000000000000000000"&gt; Wormholes&lt;/a&gt; &lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/center&gt; &lt;/h1&gt;  &lt;p&gt; In the year 2163, wormholes  were discovered. A wormhole is a subspace tunnel through space and time connecting two star systems. Wormholes have a few peculiar properties:  &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Wormholes are &lt;em&gt;one-way&lt;/em&gt;  only.  &lt;p&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;The time it takes to travel through a wormhole is negligible.  &lt;p&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;A wormhole has two end points, each situated in a star system.  &lt;p&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;A star system may have more than one wormhole end point within its boundaries.  &lt;p&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;For some unknown reason, starting from our solar system, it is always possible to end up in any star system by following a sequence of wormholes (maybe Earth is the centre of the universe). &lt;p&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Between any pair of star systems, there is at most one wormhole in either direction.  &lt;p&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;There are no wormholes with both end points in the same star system. &lt;/li&gt;&lt;/ul&gt;  &lt;p&gt; All wormholes have a constant time difference between their end points. For example, a specific wormhole may cause the person travelling through it to end up 15 years in the future. Another wormhole may cause the person to end up 42 years in the past.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;p&gt;&lt;br /&gt;A brilliant physicist, living on earth, wants to use wormholes to study the Big Bang. Since warp drive has not been invented yet, it is not possible for her to travel from one star system to another one directly. This &lt;em&gt;can&lt;/em&gt;  be done using wormholes, of course.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;p&gt;&lt;br /&gt;The scientist wants to reach a cycle of wormholes somewhere in the universe that causes her to end up in the past. By travelling along this cycle a lot of times, the scientist is able to go back as far in time as necessary to reach the beginning of the universe and see the Big Bang with her own eyes. Write a program to find out whether such a cycle exists.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001001000000000000000"&gt; Input&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt; The input file starts with a line containing the number of cases &lt;i&gt;c&lt;/i&gt; to be analysed. Each case starts with a line with two numbers &lt;i&gt;n&lt;/i&gt; and &lt;i&gt;m&lt;/i&gt; . These indicate the number of star systems ( &lt;!-- MATH: $1 \le n \le 1000$ --&gt; &lt;img src="http://icpcres.ecs.baylor.edu/onlinejudge/external/5/558img2.gif" alt="$1 \le n \le 1000$" width="105" align="middle" border="0" height="30" /&gt;) and the number of wormholes ( &lt;!-- MATH: $0 \le m \le 2000$ --&gt; &lt;img src="http://icpcres.ecs.baylor.edu/onlinejudge/external/5/558img3.gif" alt="$0 \le m \le 2000$" width="110" align="middle" border="0" height="30" /&gt;) . The star systems are numbered from 0  (our solar system) through &lt;i&gt;n&lt;/i&gt;-1 . For each wormhole a line containing three integer numbers &lt;i&gt;x&lt;/i&gt;, &lt;i&gt;y&lt;/i&gt; and &lt;i&gt;t&lt;/i&gt; is given. These numbers indicate that this wormhole allows someone to travel from the star system numbered &lt;i&gt;x&lt;/i&gt; to the star system numbered &lt;i&gt;y&lt;/i&gt;, thereby ending up &lt;i&gt;t&lt;/i&gt; ( &lt;!-- MATH: $-1000 \le t \le 1000$ --&gt; &lt;img src="http://icpcres.ecs.baylor.edu/onlinejudge/external/5/558img4.gif" alt="$-1000 \le t \le 1000$" width="141" align="middle" border="0" height="30" /&gt;) years in the future.  &lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001002000000000000000"&gt; Output&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt; The output consists of &lt;i&gt;c&lt;/i&gt; lines, one line for each case, containing the word &lt;tt&gt;possible&lt;/tt&gt; if it is indeed possible to go back in time indefinitely, or &lt;tt&gt;not possible&lt;/tt&gt; if this is not possible with the given set of star systems and wormholes.  &lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001003000000000000000"&gt; Sample Input&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt;  &lt;p&gt; &lt;/p&gt;&lt;pre&gt;2&lt;br /&gt;3 3&lt;br /&gt;0 1 1000&lt;br /&gt;1 2 15&lt;br /&gt;2 1 -42&lt;br /&gt;4 4&lt;br /&gt;0 1 10&lt;br /&gt;1 2 20&lt;br /&gt;2 3 30&lt;br /&gt;3 0 -60&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001004000000000000000"&gt; Sample Output&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt;  &lt;p&gt; &lt;/p&gt;&lt;pre&gt;possible&lt;br /&gt;not possible&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-4750522343029827061?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/4750522343029827061/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=4750522343029827061' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/4750522343029827061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/4750522343029827061'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/08/wormholes.html' title='Wormholes'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-6824787680646766832</id><published>2008-08-20T05:50:00.001-07:00</published><updated>2008-08-20T06:18:11.524-07:00</updated><title type='text'>The Settlers of Catan</title><content type='html'>&lt;h1&gt;&lt;center&gt;&lt;table bg="" style="color: rgb(0, 96, 240);"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;&lt;span style="color: rgb(192, 255, 255);font-size:180%;" &gt; &lt;a name="SECTION0001000000000000000000"&gt; The Settlers of Catan&lt;/a&gt; &lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/center&gt; &lt;/h1&gt;  &lt;p&gt; Within &lt;em&gt;Settlers of Catan&lt;/em&gt;, the 1995 German game of the year, players attempt to dominate an island by building roads, settlements and cities across its uncharted wilderness.  &lt;/p&gt;&lt;p&gt; You are employed by a software company that just has decided to develop a computer version of this game, and you are chosen to implement one of the game's special rules:  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;p&gt;&lt;br /&gt;When the game ends, the player who built the longest road gains two extra victory points.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;p&gt;&lt;br /&gt;The problem here is that the players usually build complex road networks and not just one linear path. Therefore, determining the longest road is not trivial (although human players usually see it immediately).  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;p&gt;&lt;br /&gt;Compared to the original game, we will solve a simplified problem here: You are given a set of nodes (cities) and a set of edges (road segments) of length 1 connecting the nodes. The longest road is defined as the longest path within the network that doesn't use an edge twice. Nodes may be visited more than once, though.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;p&gt;&lt;br /&gt;Example: The following network contains a road of length 12.  &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;pre&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_vTLYzXn0_tE/SKwZgDyCS_I/AAAAAAAAB28/NVVitvQzQMs/s1600-h/bbb.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://1.bp.blogspot.com/_vTLYzXn0_tE/SKwZgDyCS_I/AAAAAAAAB28/NVVitvQzQMs/s320/bbb.jpg" alt="" id="BLOGGER_PHOTO_ID_5236588505286724594" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color: rgb(0, 112, 232);"&gt;&lt;a name="SECTION0001001000000000000000"&gt; Input&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt; The input file will contain one or more test cases.  &lt;p&gt; The first line of each test case contains two integers: the number of nodes &lt;i&gt;n&lt;/i&gt; ( &lt;!-- MATH: $2 \le n \le 25$ --&gt; &lt;img src="http://icpcres.ecs.baylor.edu/onlinejudge/external/5/539img1.gif" alt="$2 \le n \le 25$" width="88" align="middle" border="0" height="30" /&gt;) and the number of edges &lt;i&gt;m&lt;/i&gt; ( &lt;!-- MATH: $1 \le m \le 25$ --&gt; &lt;img src="http://icpcres.ecs.baylor.edu/onlinejudge/external/5/539img2.gif" alt="$1 \le m \le 25$" width="92" align="middle" border="0" height="30" /&gt;). The next &lt;i&gt;m&lt;/i&gt; lines describe the &lt;i&gt;m&lt;/i&gt; edges. Each edge is given by the numbers of the two nodes connected by it. Nodes are numbered from 0 to &lt;i&gt;n&lt;/i&gt;-1. Edges are undirected. Nodes have degrees of three or less. The network is not neccessarily connected.  &lt;/p&gt;&lt;p&gt; Input will be terminated by two values of 0 for &lt;i&gt;n&lt;/i&gt; and &lt;i&gt;m&lt;/i&gt;.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color: rgb(0, 112, 232);"&gt;&lt;a name="SECTION0001002000000000000000"&gt; Output&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt; For each test case, print the length of the longest road on a single line.  &lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color: rgb(0, 112, 232);"&gt;&lt;a name="SECTION0001003000000000000000"&gt; Sample Input&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt;  &lt;p&gt; &lt;/p&gt;&lt;pre&gt;3 2&lt;br /&gt;0 1&lt;br /&gt;1 2&lt;br /&gt;15 16&lt;br /&gt;0 2&lt;br /&gt;1 2&lt;br /&gt;2 3&lt;br /&gt;3 4&lt;br /&gt;3 5&lt;br /&gt;4 6&lt;br /&gt;5 7&lt;br /&gt;6 8&lt;br /&gt;7 8&lt;br /&gt;7 9&lt;br /&gt;8 10&lt;br /&gt;9 11&lt;br /&gt;10 12&lt;br /&gt;11 12&lt;br /&gt;10 13&lt;br /&gt;12 14&lt;br /&gt;0 0&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color: rgb(0, 112, 232);"&gt;&lt;a name="SECTION0001004000000000000000"&gt; Sample Output&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt;  &lt;p&gt; &lt;/p&gt;&lt;pre&gt;2&lt;br /&gt;12&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-6824787680646766832?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/6824787680646766832/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=6824787680646766832' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/6824787680646766832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/6824787680646766832'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/08/settlers-of-catan.html' title='The Settlers of Catan'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_vTLYzXn0_tE/SKwZgDyCS_I/AAAAAAAAB28/NVVitvQzQMs/s72-c/bbb.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-4791013169407951348</id><published>2008-08-20T05:46:00.001-07:00</published><updated>2008-08-20T05:46:47.550-07:00</updated><title type='text'>The partition of a cake</title><content type='html'>&lt;h1&gt;&lt;center&gt;&lt;table bg style="color:#0060f0;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;&lt;span style="font-size:180%;color:#c0ffff;"&gt; &lt;a name="SECTION0001000000000000000000"&gt; The partition of a cake&lt;/a&gt; &lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/center&gt; &lt;/h1&gt;  &lt;p&gt; There is a 1000&lt;img src="http://icpcres.ecs.baylor.edu/onlinejudge/external/5/527img1.gif" alt="$\times$" width="18" align="middle" border="0" height="30" /&gt;1000 square cake. We use knife to cut the cake. The problem is after a series of cutting, how many partitions the cake will has.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;b&gt;Assumption:&lt;/b&gt; &lt;/p&gt;&lt;dl compact="compact"&gt;&lt;dt&gt;1. &lt;/dt&gt;&lt;dd&gt;The number of the cutting will be no more than 8. &lt;/dd&gt;&lt;dt&gt;2. &lt;/dt&gt;&lt;dd&gt;After the cutting, the length of any edge of the partition will no less than 1. &lt;/dd&gt;&lt;dt&gt;3. &lt;/dt&gt;&lt;dd&gt;The vertex coordinates of the cake are (0,0)(0,1000)(1000,1000) (1000,0). &lt;/dd&gt;&lt;dt&gt;4. &lt;/dt&gt;&lt;dd&gt;The intersections of the cut line and the cake edge are two . &lt;/dd&gt;&lt;/dl&gt;  &lt;p&gt;  &lt;/p&gt;&lt;p&gt;&lt;br /&gt;The following Graph is a sample partition. The number of the partitions is 10.  &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;div align="center"&gt; &lt;img src="http://icpcres.ecs.baylor.edu/onlinejudge/external/5/p527.gif" /&gt; &lt;/div&gt;  &lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001001000000000000000"&gt; Input&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt; The first line of the input is an integer M, then a blank line followed by M datasets. There is a blank line between datasets.The first line of each dataset is the number of the cutting . The following lines contain the information of the cut lines. Each line has 4 integer number, which represent the coordinate of the intersection of the cut line and the cake edge. &lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001002000000000000000"&gt; Output&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt; The output for each dataset is the number of the partitions of the cake. Print a blank line between datasets.  &lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001003000000000000000"&gt; Sample Input&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt; &lt;pre&gt;1&lt;br /&gt;&lt;br /&gt;3&lt;br /&gt;0 0 1000 1000&lt;br /&gt;500 0 500 1000&lt;br /&gt;0 500 1000 500&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001004000000000000000"&gt; Sample Output&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt; &lt;pre&gt;6&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;  &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-4791013169407951348?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/4791013169407951348/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=4791013169407951348' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/4791013169407951348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/4791013169407951348'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/08/partition-of-cake.html' title='The partition of a cake'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-1078111243422000243</id><published>2008-08-20T05:40:00.001-07:00</published><updated>2008-08-20T05:40:37.068-07:00</updated><title type='text'>System Dependencies</title><content type='html'>&lt;h1&gt;&lt;br /&gt;&lt;center&gt;&lt;table bg style="color:#0060f0;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;&lt;span style="font-size:180%;color:#c0ffff;"&gt; &lt;a name="SECTION0001000000000000000000"&gt; System Dependencies&lt;/a&gt; &lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/center&gt; &lt;/h1&gt;  &lt;p&gt; Components of computer systems often have dependencies--other components that must be installed before they will function properly. These dependencies are frequently shared by multiple components. For example, both the TELNET client program and the FTP client program require that the TCP/IP networking software be installed before they can operate. If you install TCP/IP and the TELNET client program, and later decide to add the FTP client program, you do not need to reinstall TCP/IP.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;p&gt;&lt;br /&gt;For some components it would not be a problem if the components on which they depended were reinstalled; it would just waste some resources. But for others, like TCP/IP, some component configuration may be destroyed if the component was reinstalled.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;p&gt;&lt;br /&gt;It is useful to be able to remove components that are no longer needed. When this is done, components that only support the removed component may also be removed, freeing up disk space, memory, and other resources. But a supporting component, not explicitly installed, may be removed only if all components which depend on it are also removed. For example, removing the FTP client program and TCP/IP would mean the TELNET client program, which was not removed, would no longer operate. Likewise, removing TCP/IP by itself would cause the failure of both the TELNET and the FTP client programs. Also if we installed TCP/IP to support our own development, then installed the TELNET client (which depends on TCP/IP) and then still later removed the TELNET client, we would not want TCP/IP to be removed.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;p&gt;&lt;br /&gt;We want a program to automate the process of adding and removing components. To do this we will maintain a record of installed components and component dependencies. A component can be installed explicitly in response to a command (unless it is already installed), or implicitly if it is needed for some other component being installed. Likewise, a component, not explicitly installed, can be explicitly removed in response to a command (if it is not needed to support other components) or implicitly removed if it is no longer needed to support another component. Installing an already implicitly-installed component won't make that component become explicity installed. &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001001000000000000000"&gt; Input&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt; The input will contain a sequence of commands (as described below), each on a separate line containing no more than eighty characters. Item names are case sensitive, and each is no longer than ten characters. The command names (&lt;tt&gt;DEPEND&lt;/tt&gt;, &lt;tt&gt;INSTALL&lt;/tt&gt;, &lt;tt&gt;REMOVE&lt;/tt&gt; and &lt;tt&gt;LIST&lt;/tt&gt;) always appear in uppercase starting in column one, and item names are separated from the command name and each other by one or more spaces. All appropriate &lt;tt&gt;DEPEND&lt;/tt&gt; commands will appear before the occurrence of any &lt;tt&gt;INSTALL&lt;/tt&gt; command that uses them. There will be no circular dependencies. The end of the input is marked by a line containing only the word &lt;tt&gt;END&lt;/tt&gt;.  &lt;p&gt;  &lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;div align="center"&gt; &lt;table border="1" cellpadding="3"&gt; &lt;tbody&gt;&lt;tr&gt;&lt;td colspan="1" align="center"&gt;&lt;em&gt; Command Syntax&lt;/em&gt;&lt;/td&gt; &lt;td colspan="1" align="center"&gt;&lt;em&gt; Interpretation/Response&lt;/em&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;&lt;td align="left"&gt;&lt;tt&gt; DEPEND item1 item2 [item3 ...]&lt;/tt&gt;&lt;/td&gt; &lt;td align="left"&gt;&lt;b&gt; item1&lt;/b&gt; depends on &lt;b&gt; item2&lt;/b&gt; (and &lt;b&gt; item3&lt;/b&gt; ...)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;&lt;td align="left"&gt;&lt;tt&gt; INSTALL item1&lt;/tt&gt;&lt;/td&gt; &lt;td align="left"&gt;install &lt;b&gt; item1&lt;/b&gt; and those on which it depends&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;&lt;td align="left"&gt;&lt;tt&gt; REMOVE item1&lt;/tt&gt;&lt;/td&gt; &lt;td align="left"&gt;remove &lt;b&gt; item1&lt;/b&gt;, and those on which it depends, if possible&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;&lt;td align="left"&gt;&lt;tt&gt; LIST&lt;/tt&gt;&lt;/td&gt; &lt;td align="left"&gt;list the names of all currently-installed components&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;  &lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001002000000000000000"&gt; Output&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt; Echo each line of input. Follow each echoed &lt;tt&gt;INSTALL&lt;/tt&gt; or &lt;tt&gt;REMOVE&lt;/tt&gt; line with the actions taken in response, making certain that the actions are given in the proper order. Also identify exceptional conditions (see Sample Output, below, for examples of all cases). For the &lt;tt&gt;LIST&lt;/tt&gt; command, display the names of the currently installed components in the installation order. No output, except the echo, is produced for a &lt;tt&gt;DEPEND&lt;/tt&gt; command or the line containing &lt;tt&gt;END&lt;/tt&gt;. There will be at most one dependency list per item.  &lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001003000000000000000"&gt; Sample Input 1&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt; &lt;pre&gt;DEPEND   TELNET TCPIP NETCARD&lt;br /&gt;DEPEND TCPIP NETCARD&lt;br /&gt;DEPEND DNS TCPIP NETCARD&lt;br /&gt;DEPEND  BROWSER   TCPIP  HTML&lt;br /&gt;INSTALL NETCARD&lt;br /&gt;INSTALL TELNET&lt;br /&gt;INSTALL foo&lt;br /&gt;REMOVE NETCARD&lt;br /&gt;INSTALL BROWSER&lt;br /&gt;INSTALL DNS&lt;br /&gt;LIST&lt;br /&gt;REMOVE TELNET&lt;br /&gt;REMOVE NETCARD&lt;br /&gt;REMOVE DNS&lt;br /&gt;REMOVE NETCARD&lt;br /&gt;INSTALL NETCARD&lt;br /&gt;REMOVE TCPIP&lt;br /&gt;REMOVE BROWSER&lt;br /&gt;REMOVE TCPIP&lt;br /&gt;END&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001004000000000000000"&gt; Sample Output 1&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt; &lt;pre&gt;DEPEND   TELNET TCPIP NETCARD&lt;br /&gt;DEPEND TCPIP NETCARD&lt;br /&gt;DEPEND DNS TCPIP NETCARD&lt;br /&gt;DEPEND  BROWSER   TCPIP  HTML&lt;br /&gt;INSTALL NETCARD&lt;br /&gt;  Installing NETCARD&lt;br /&gt;INSTALL TELNET&lt;br /&gt;  Installing TCPIP&lt;br /&gt;  Installing TELNET&lt;br /&gt;INSTALL foo&lt;br /&gt;  Installing foo&lt;br /&gt;REMOVE NETCARD&lt;br /&gt;  NETCARD is still needed.&lt;br /&gt;INSTALL BROWSER&lt;br /&gt;  Installing HTML&lt;br /&gt;  Installing BROWSER&lt;br /&gt;INSTALL DNS&lt;br /&gt;  Installing DNS&lt;br /&gt;LIST&lt;br /&gt;  NETCARD&lt;br /&gt;  TCPIP&lt;br /&gt;  TELNET&lt;br /&gt;  foo&lt;br /&gt;  HTML&lt;br /&gt;  BROWSER&lt;br /&gt;  DNS&lt;br /&gt;REMOVE TELNET&lt;br /&gt;  Removing TELNET&lt;br /&gt;REMOVE NETCARD&lt;br /&gt;  NETCARD is still needed.&lt;br /&gt;REMOVE DNS&lt;br /&gt;  Removing DNS&lt;br /&gt;REMOVE NETCARD&lt;br /&gt;  NETCARD is still needed.&lt;br /&gt;INSTALL NETCARD&lt;br /&gt;  NETCARD is already installed.&lt;br /&gt;REMOVE TCPIP&lt;br /&gt;  TCPIP is still needed.&lt;br /&gt;REMOVE BROWSER&lt;br /&gt;  Removing BROWSER&lt;br /&gt;  Removing HTML&lt;br /&gt;  Removing TCPIP&lt;br /&gt;REMOVE TCPIP&lt;br /&gt;  TCPIP is not installed.&lt;br /&gt;END&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001003000000000000000"&gt; Sample Input 2&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt; &lt;pre&gt;DEPEND A B&lt;br /&gt;INSTALL A&lt;br /&gt;INSTALL B&lt;br /&gt;REMOVE A&lt;br /&gt;END&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001004000000000000000"&gt; Sample Output 2&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt; &lt;pre&gt;DEPEND A B&lt;br /&gt;INSTALL A&lt;br /&gt;  Installing B&lt;br /&gt;  Installing A&lt;br /&gt;INSTALL B&lt;br /&gt;  B is already installed.&lt;br /&gt;REMOVE A&lt;br /&gt;  Removing A&lt;br /&gt;  Removing B&lt;br /&gt;END&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-1078111243422000243?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/1078111243422000243/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=1078111243422000243' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/1078111243422000243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/1078111243422000243'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/08/system-dependencies.html' title='System Dependencies'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-4517601010852872494</id><published>2008-08-20T05:33:00.001-07:00</published><updated>2008-08-20T05:33:52.121-07:00</updated><title type='text'>Anagram</title><content type='html'>&lt;h1&gt;&lt;center&gt;&lt;table bg style="color:#0060f0;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;&lt;span style="font-size:180%;color:#c0ffff;"&gt; &lt;a name="SECTION0001000000000000000000"&gt;Anagram&lt;/a&gt;&lt;/span&gt; &lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/center&gt;&lt;/h1&gt; &lt;p&gt; You are to write a program that has to generate all possible words from a given set of letters. &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;b&gt;Example:&lt;/b&gt; Given the word "&lt;tt&gt;abc&lt;/tt&gt;", your program should - by exploring all different combination of the three letters - output the words "&lt;tt&gt;abc&lt;/tt&gt;", "&lt;tt&gt;acb&lt;/tt&gt;", "&lt;tt&gt;bac&lt;/tt&gt;", "&lt;tt&gt;bca&lt;/tt&gt;", "&lt;tt&gt;cab&lt;/tt&gt;" and "&lt;tt&gt;cba&lt;/tt&gt;". &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; In the word taken from the input file, some letters may appear more than once. For a given word, your program should not produce the same word more than once, and the words should be output in alphabetically ascending order. &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001001000000000000000"&gt;Input&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt; &lt;p&gt; The input file consists of several words. The first line contains a number giving the number of words to follow. Each following line contains one word. A word consists of uppercase or lowercase letters from A to Z. Uppercase and lowercase letters are to be considered different. &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001002000000000000000"&gt;Output&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt; &lt;p&gt; For each word in the input file, the output file should contain all different words that can be generated with the letters of the given word. The words generated from the same input word should be output in alphabetically ascending order. An upper case letter goes before the corresponding lower case letter. &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001003000000000000000"&gt;Sample Input&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt; &lt;p&gt; &lt;/p&gt;&lt;pre&gt;3&lt;br /&gt;aAb&lt;br /&gt;abc&lt;br /&gt;acba&lt;/pre&gt; &lt;p&gt; &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001004000000000000000"&gt;Sample Output&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt; &lt;p&gt; &lt;/p&gt;&lt;pre&gt;Aab&lt;br /&gt;Aba&lt;br /&gt;aAb&lt;br /&gt;abA&lt;br /&gt;bAa&lt;br /&gt;baA&lt;br /&gt;abc&lt;br /&gt;acb&lt;br /&gt;bac&lt;br /&gt;bca&lt;br /&gt;cab&lt;br /&gt;cba&lt;br /&gt;aabc&lt;br /&gt;aacb&lt;br /&gt;abac&lt;br /&gt;abca&lt;br /&gt;acab&lt;br /&gt;acba&lt;br /&gt;baac&lt;br /&gt;baca&lt;br /&gt;bcaa&lt;br /&gt;caab&lt;br /&gt;caba&lt;br /&gt;cbaa&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-4517601010852872494?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/4517601010852872494/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=4517601010852872494' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/4517601010852872494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/4517601010852872494'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/08/anagram.html' title='Anagram'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-7393418466384696184</id><published>2008-08-20T05:21:00.001-07:00</published><updated>2008-08-20T05:22:24.543-07:00</updated><title type='text'>The Skyline Problem</title><content type='html'>&lt;h1&gt;&lt;br /&gt;&lt;center&gt;&lt;table bg style="color:#0060f0;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;&lt;span style="font-size:180%;color:#c0ffff;"&gt; &lt;a name="SECTION0001000000000000000000"&gt;The Skyline Problem&lt;/a&gt;&lt;/span&gt; &lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/center&gt;&lt;/h1&gt; &lt;p&gt; &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001001000000000000000"&gt;Background&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt; &lt;p&gt; With the advent of high speed graphics workstations, CAD  (computer-aided design) and other areas (CAM, VLSI design) have made increasingly effective use of computers.  One of the problems with drawing images is the elimination of hidden lines -- lines obscured by other parts of a drawing. &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001002000000000000000"&gt;The Problem&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt; &lt;p&gt; You are to design a program to assist an architect in drawing the skyline of a city given the locations of the buildings in the city.  To make the problem tractable, all buildings are rectangular in shape and they share a common bottom (the city they are built in is very flat).   The city is also viewed as two-dimensional.  A building is specified by an ordered triple  &lt;img alt="tex2html_wrap_inline149" src="http://icpcres.ecs.baylor.edu/onlinejudge/external/1/105img1.gif" width="81" align="middle" height="27" /&gt;  where   &lt;img alt="tex2html_wrap_inline151" src="http://icpcres.ecs.baylor.edu/onlinejudge/external/1/105img2.gif" width="15" align="middle" height="25" /&gt;  and  &lt;img alt="tex2html_wrap_inline153" src="http://icpcres.ecs.baylor.edu/onlinejudge/external/1/105img3.gif" width="16" align="middle" height="25" /&gt;  are left and right coordinates, respectively, of building &lt;i&gt;i&lt;/i&gt; and  &lt;img alt="tex2html_wrap_inline157" src="http://icpcres.ecs.baylor.edu/onlinejudge/external/1/105img4.gif" width="18" align="middle" height="25" /&gt;  is the height of the building.  In the diagram below buildings are shown on the left with triples (1,11,5), (2,6,7), (3,13,9), (12,7,16), (14,3,25), (19,18,22), (23,13,29), (24,4,28) &lt;/p&gt;&lt;p&gt; the skyline, shown on the right, is represented by the sequence: (1, 11, 3, 13, 9, 0, 12, 7, 16, 3, 19, 18, 22, 3, 23, 13, 29, 0) &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;img alt="figure26" src="http://icpcres.ecs.baylor.edu/onlinejudge/external/1/105img5.gif" width="535" align="bottom" height="173" /&gt; &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001003000000000000000"&gt;The Input&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt; &lt;p&gt; The input is a sequence of building triples.  All coordinates of buildings are positive integers less than 10,000 and there will be at least one and at most 5,000 buildings in the input file.  Each building triple is on a line by itself in the input file.  All integers in a triple are separated by one or more spaces.  The triples will be sorted by  &lt;img alt="tex2html_wrap_inline151" src="http://icpcres.ecs.baylor.edu/onlinejudge/external/1/105img2.gif" width="15" align="middle" height="25" /&gt; , the left &lt;i&gt;x&lt;/i&gt;-coordinate of the building, so the building with the smallest left &lt;i&gt;x&lt;/i&gt;-coordinate is first in the input file. &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001004000000000000000"&gt;The Output&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt; &lt;p&gt; The output should consist of the vector that describes the skyline as shown in the example above.  In the skyline vector  &lt;img alt="tex2html_wrap_inline183" src="http://icpcres.ecs.baylor.edu/onlinejudge/external/1/105img6.gif" width="215" align="middle" height="27" /&gt; , the  &lt;img alt="tex2html_wrap_inline185" src="http://icpcres.ecs.baylor.edu/onlinejudge/external/1/105img7.gif" width="11" align="middle" height="17" /&gt;  such that &lt;i&gt;i&lt;/i&gt; is an even number represent a horizontal line (height).  The  &lt;img alt="tex2html_wrap_inline185" src="http://icpcres.ecs.baylor.edu/onlinejudge/external/1/105img7.gif" width="11" align="middle" height="17" /&gt;  such that &lt;i&gt;i&lt;/i&gt; is an odd number represent a vertical line (&lt;i&gt;x&lt;/i&gt;-coordinate).  The skyline vector should represent the ``path'' taken, for example, by a bug starting at the minimum &lt;i&gt;x&lt;/i&gt;-coordinate and traveling horizontally and vertically over all the lines that define the skyline.  Thus the last entry in the skyline vector will be a 0. The coordinates must be separated by a blank space. &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001005000000000000000"&gt;Sample Input&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt; &lt;p&gt; &lt;/p&gt;&lt;pre&gt;1 11 5&lt;br /&gt;2 6 7&lt;br /&gt;3 13 9&lt;br /&gt;12 7 16&lt;br /&gt;14 3 25&lt;br /&gt;19 18 22&lt;br /&gt;23 13 29&lt;br /&gt;24 4 28&lt;/pre&gt; &lt;p&gt; &lt;/p&gt;&lt;h2&gt;&lt;span style="color:#0070e8;"&gt;&lt;a name="SECTION0001006000000000000000"&gt;Sample Output&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt; &lt;p&gt; &lt;/p&gt;&lt;pre&gt;1 11 3 13 9 0 12 7 16 3 19 18 22 3 23 13 29 0&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-7393418466384696184?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/7393418466384696184/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=7393418466384696184' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/7393418466384696184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/7393418466384696184'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/08/skyline-problem.html' title='The Skyline Problem'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-2776655749078427986</id><published>2008-08-20T02:36:00.000-07:00</published><updated>2008-08-20T02:40:48.314-07:00</updated><title type='text'>Prime Ring Problem</title><content type='html'>&lt;h1&gt;&lt;br /&gt;&lt;center&gt;Prime Ring Problem&lt;br /&gt;&lt;/center&gt; &lt;/h1&gt;  &lt;p&gt; A ring is composed of n (even number) circles as shown in diagram. Put natural numbers  &lt;!-- MATH: $1, 2, \dots, n$ --&gt; &lt;img src="http://icpcres.ecs.baylor.edu/onlinejudge/external/5/524img1.gif" alt="$1, 2, \dots, n$" width="79" align="middle" border="0" height="30" /&gt; into each circle separately, and the sum of numbers in two adjacent circles should be a prime.   &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;div align="center"&gt; &lt;img src="http://icpcres.ecs.baylor.edu/onlinejudge/external/5/p524.gif" /&gt; &lt;/div&gt;  &lt;p&gt;  &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;b&gt;Note:&lt;/b&gt; the number of first circle should always be 1.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color: rgb(0, 112, 232);"&gt;&lt;a name="SECTION0001001000000000000000"&gt; Input&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt; &lt;i&gt;n (0 &lt; n &lt;= 16) &lt;/i&gt; &lt;!-- ( &lt;&gt; &lt;img width="88" height="30" align="MIDDLE" border="0" src="524img2.gif" alt="$0 &lt; n \le 20$" /&gt;) --&gt;  &lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color: rgb(0, 112, 232);"&gt;&lt;a name="SECTION0001002000000000000000"&gt; Output&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt; The output format is shown as sample below. Each row represents a series of circle numbers in the ring beginning from 1 clockwisely and anticlockwisely. The order of numbers must satisfy the above requirements.  &lt;p&gt;  &lt;/p&gt;&lt;p&gt;&lt;br /&gt;You are to write a program that completes above process.  &lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color: rgb(0, 112, 232);"&gt;&lt;a name="SECTION0001003000000000000000"&gt; Sample Input&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt; &lt;pre&gt;6&lt;br /&gt;8&lt;br /&gt;&lt;/pre&gt;  &lt;p&gt;  &lt;/p&gt;&lt;h2&gt;&lt;span style="color: rgb(0, 112, 232);"&gt;&lt;a name="SECTION0001004000000000000000"&gt; Sample Output&lt;/a&gt; &lt;/span&gt; &lt;/h2&gt; &lt;pre&gt;Case 1:&lt;br /&gt;1 4 3 2 5 6&lt;br /&gt;1 6 5 2 3 4&lt;br /&gt;&lt;br /&gt;Case 2:&lt;br /&gt;1 2 3 8 5 6 7 4&lt;br /&gt;1 2 5 8 3 4 7 6&lt;br /&gt;1 4 7 6 5 8 3 2&lt;br /&gt;1 6 7 4 3 8 5 2&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-2776655749078427986?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/2776655749078427986/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=2776655749078427986' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/2776655749078427986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/2776655749078427986'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/08/prime-ring-problem.html' title='Prime Ring Problem'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-792890866617698159.post-76419498219520871</id><published>2008-08-20T02:17:00.000-07:00</published><updated>2008-08-20T02:20:07.002-07:00</updated><title type='text'>The 3n + 1 problem</title><content type='html'>&lt;h1&gt;&lt;br /&gt;&lt;center style="color: rgb(51, 0, 51);"&gt;The 3n + 1 problem&lt;br /&gt;&lt;/center&gt;&lt;/h1&gt; &lt;p&gt; &lt;/p&gt;&lt;h2&gt;&lt;span style="color: rgb(0, 112, 232);"&gt;&lt;a name="SECTION0001001000000000000000"&gt;Background&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt; &lt;p&gt; Problems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive).  In this problem you will be analyzing a property of an algorithm whose classification is not known for all possible inputs. &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;h2&gt;&lt;span style="color: rgb(0, 112, 232);"&gt;&lt;a name="SECTION0001002000000000000000"&gt;The Problem&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt; &lt;p&gt; Consider the following algorithm: &lt;/p&gt;&lt;pre&gt;&lt;tt&gt;&lt;br /&gt; 1.    input &lt;i&gt;n&lt;/i&gt;&lt;br /&gt;&lt;/tt&gt;&lt;p&gt;&lt;br /&gt;&lt;tt&gt;  2.    print &lt;i&gt;n&lt;/i&gt;&lt;br /&gt;&lt;/tt&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;tt&gt;  3.    if &lt;i&gt;n&lt;/i&gt; = 1 then STOP&lt;br /&gt;&lt;/tt&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;tt&gt;  4.       if &lt;i&gt;n&lt;/i&gt; is odd then  &lt;img alt="tex2html_wrap_inline44" src="http://icpcres.ecs.baylor.edu/onlinejudge/external/1/100img1.gif" width="95" align="middle" height="25" /&gt;&lt;br /&gt;&lt;/tt&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;tt&gt;  5.       else  &lt;img alt="tex2html_wrap_inline46" src="http://icpcres.ecs.baylor.edu/onlinejudge/external/1/100img2.gif" width="74" align="middle" height="27" /&gt;&lt;br /&gt;&lt;/tt&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;tt&gt;  6.    GOTO 2&lt;br /&gt;&lt;/tt&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/pre&gt; &lt;p&gt; Given the input 22, the following sequence of numbers will be printed 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2 1 &lt;/p&gt;&lt;p&gt; It is conjectured that the algorithm above will terminate (when a 1 is printed) for any integral input value.  Despite the simplicity of the algorithm, it is unknown whether this conjecture is true.  It has been verified, however, for all integers &lt;i&gt;n&lt;/i&gt; such that 0 &lt; &lt;i&gt;n&lt;/i&gt; &lt;&gt;&lt;/p&gt;&lt;p&gt; Given an input &lt;i&gt;n&lt;/i&gt;, it is possible to determine the number of numbers printed (including  the 1).  For a given &lt;i&gt;n&lt;/i&gt; this is called the &lt;em&gt;cycle-length&lt;/em&gt; of &lt;i&gt;n&lt;/i&gt;.  In the example above, the cycle length of 22 is 16. &lt;/p&gt;&lt;p&gt; For any two numbers &lt;i&gt;i&lt;/i&gt; and &lt;i&gt;j&lt;/i&gt; you are to determine the maximum cycle length over all numbers between &lt;u&gt; &lt;i&gt;i&lt;/i&gt; and &lt;i&gt;j&lt;/i&gt;. &lt;/u&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;h2&gt;&lt;span style="color: rgb(0, 112, 232);"&gt;&lt;a name="SECTION0001003000000000000000"&gt;The Input&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt; &lt;p&gt; The input will consist of a series of pairs of integers &lt;i&gt;i&lt;/i&gt; and &lt;i&gt;j&lt;/i&gt;, one pair of integers per line.  All integers will be less than 1,000,000 and greater than 0. &lt;/p&gt;&lt;p&gt; You should process all pairs of integers and for each pair determine the maximum cycle length over all integers between and including &lt;i&gt;i&lt;/i&gt; and &lt;i&gt;j&lt;/i&gt;. &lt;/p&gt;&lt;p&gt;You can assume that no operation overflows a 32-bit integer. &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;h2&gt;&lt;span style="color: rgb(0, 112, 232);"&gt;&lt;a name="SECTION0001004000000000000000"&gt;The Output&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt; &lt;p&gt; For each pair of input integers &lt;i&gt;i&lt;/i&gt; and &lt;i&gt;j&lt;/i&gt; you should output &lt;i&gt;i&lt;/i&gt;, &lt;i&gt;j&lt;/i&gt;, and the maximum cycle length for integers between and including &lt;i&gt;i&lt;/i&gt; and &lt;i&gt;j&lt;/i&gt;.  These three numbers should be separated by at least one space with all three numbers on one line and with one line of output for each line of input.  The integers &lt;i&gt;i&lt;/i&gt; and &lt;i&gt;j&lt;/i&gt; must appear in the output in the same order in which they appeared in the input and should be followed by the maximum cycle length (on the same line). &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;h2&gt;&lt;span style="color: rgb(0, 112, 232);"&gt;&lt;a name="SECTION0001005000000000000000"&gt;Sample Input&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt; &lt;p&gt; &lt;/p&gt;&lt;pre&gt;1 10&lt;br /&gt;100 200&lt;br /&gt;201 210&lt;br /&gt;900 1000&lt;br /&gt;&lt;/pre&gt; &lt;p&gt; &lt;/p&gt;&lt;h2&gt;&lt;span style="color: rgb(0, 112, 232);"&gt;&lt;a name="SECTION0001006000000000000000"&gt;Sample Output&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt; &lt;p&gt; &lt;/p&gt;&lt;pre&gt;1 10 20&lt;br /&gt;100 200 125&lt;br /&gt;201 210 89&lt;br /&gt;900 1000 174&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/792890866617698159-76419498219520871?l=coding-quiz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coding-quiz.blogspot.com/feeds/76419498219520871/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=792890866617698159&amp;postID=76419498219520871' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/76419498219520871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/792890866617698159/posts/default/76419498219520871'/><link rel='alternate' type='text/html' href='http://coding-quiz.blogspot.com/2008/08/3n-1-problem.html' title='The 3n + 1 problem'/><author><name>Nara</name><uri>http://www.blogger.com/profile/06311220148524707228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
