<?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-8016010059186253016</id><updated>2012-02-07T23:53:39.179-08:00</updated><category term='apache'/><category term='linux'/><category term='SPOJ'/><category term='google code jam'/><category term='gettingStarted'/><category term='zealicon'/><category term='algorithms'/><category term='online event'/><category term='PC2'/><category term='USACO'/><category term='IIS'/><category term='c'/><category term='telephonic interview'/><category term='android'/><category term='topcoder'/><category term='websites'/><category term='algothematics'/><category term='programming contest software'/><category term='DB2'/><category term='optimization'/><category term='project euler'/><category term='asp.net'/><category term='article'/><category term='web server'/><category term='programming languages'/><category term='acm-icpc'/><category term='c++'/><category term='blogs'/><category term='google'/><category term='database'/><category term='programming contests'/><title type='text'>~~`Coding Voding`~~</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>36</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-6777041350720726210</id><published>2011-05-18T12:33:00.000-07:00</published><updated>2011-05-18T12:40:30.248-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='telephonic interview'/><category scheme='http://www.blogger.com/atom/ns#' term='article'/><title type='text'>How to screw your telephonic interview in five simple ways !!</title><content type='html'>&lt;a href="http://1.bp.blogspot.com/-L1JmO-Azv3U/TdQffFn-gWI/AAAAAAAAAVw/u4kj2m0IbxQ/s1600/blog.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 300px; height: 346px;" src="http://1.bp.blogspot.com/-L1JmO-Azv3U/TdQffFn-gWI/AAAAAAAAAVw/u4kj2m0IbxQ/s400/blog.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5608142054929367394" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;Having three telephonic interviews experience, all being unsuccessful, I consider myself as the master of my group. Ya, the group of people who are good at screwing up their interviews. Wanna join this elite group ? You just need to take the below mentioned five easy steps before and during the telephonic interview as required.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The five glorious steps:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;As per the procedure of the interview, the HR of the company calls up the student (to be interviewed) for the first time. Aim of HR is to convey student the interview timings, confirm his phone number and get aquainted to his background. The blunder you can do at this time is not to ask about the type of questions you would be asked during the interview. If you didn't do that.. you just took first step to join my elite group ! Certain companies (like facebook) prefer asking the algorithm questions (just like those in programming contests) whereas other companies (like Magma Inc. and Directi) check student's logic and reasoning by asking puzzles.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;The second blunder you can do is to consider yourself superman and not prepare anything for the day. Do not even bother to look upon previously asked questions by the company or get yourself aquainted with famous puzzles asked during interviews.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;You'll be just two steps away if you don't charge the mobile enough for an hour long interview on the death day.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;The second last blunder you can do is to choose such a place for the interview where you get the weakest mobile signal as in casually lying in your bedroom and getting the call with no ear phones or your bathroom so that none of your friend sees you or hears your conversation !!&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;The last but not the least blunder you can do is to get fumbled up in nearly all the questions asked. Push the panic button again and again. Beat around the bush, don't hit the point and make the interviewer furious over you.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ok, ya I m a little too agitated about another failed telephonic interview. The point is you can read the five steps, exactly do the opposite and make you interview much more comfortable and impressive.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-6777041350720726210?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/6777041350720726210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2011/05/how-to-screw-you-telephonic-interview.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/6777041350720726210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/6777041350720726210'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2011/05/how-to-screw-you-telephonic-interview.html' title='How to screw your telephonic interview in five simple ways !!'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-L1JmO-Azv3U/TdQffFn-gWI/AAAAAAAAAVw/u4kj2m0IbxQ/s72-c/blog.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-6786782101612467461</id><published>2011-03-08T23:44:00.000-08:00</published><updated>2011-03-09T00:34:03.920-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='algorithms'/><category scheme='http://www.blogger.com/atom/ns#' term='zealicon'/><category scheme='http://www.blogger.com/atom/ns#' term='algothematics'/><title type='text'>Algothematics.. back again !!</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-gALsVw3t7JI/TXcxOS464KI/AAAAAAAAAVU/gx5QSkVIQ0Y/s1600/alo%2Bcopy.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 129px;" src="http://1.bp.blogspot.com/-gALsVw3t7JI/TXcxOS464KI/AAAAAAAAAVU/gx5QSkVIQ0Y/s400/alo%2Bcopy.png" alt="" id="BLOGGER_PHOTO_ID_5581984384807526562" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="font-weight: bold;" href="http://algothematics.zealicon.org/"&gt;Algothematics&lt;/a&gt; is back.. smarter and trickier !! Algothematics was first introduced in &lt;a style="color: rgb(0, 0, 0);"&gt;Zealicon '10&lt;/a&gt;  (annual TechFest of JSS Academy of Technical Education, Noida) and is  slated for &lt;span style="font-weight: bold;"&gt;9th March in &lt;a href="http://zealicon.org/"&gt;Zealicon'11&lt;/a&gt;&lt;/span&gt;. Just as the last year, the  event will be conducted online. All programmers across the world are,  hence, invited.&lt;br /&gt;&lt;br /&gt;Rules are the same. The event comprises of 15 levels. Each level has  an ad-hoc mathematical problem which can either be solved manually  (using pen and paper) or by conceiving certain algorithm. The submission  requires only the answer to the question. Submission of source-code is  not required.&lt;br /&gt;&lt;br /&gt;Other tools can also be used for solving the  problems. Spreadsheet, PARI-GP, MATLAB or anyother library (like BigInteger) are among them. Besides all these  we always have &lt;span style="color: rgb(51, 51, 255);"&gt;G&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;O&lt;/span&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;O&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;G&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;L&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;E&lt;/span&gt; with us... :)&lt;br /&gt;&lt;br /&gt;Besides all this, &lt;a href="http://zealicon.org/forum/viewforum.php?f=7" target="_blank"&gt;Zealicon forum&lt;/a&gt;  will contain an "Algothematics" thread under "online events" where all  sorts of problems and their hints will be discussed. No questions  extraneous to the event will be entertained.&lt;br /&gt;LeaderBoard will be available at the home page itself, so that you can constantly check your position among others.&lt;br /&gt;&lt;br /&gt;Please  do not ruin the basic purpose of event by any hacking stuff. Those not  conforming to the rules and regulations will be banned without prior  information. Decision of &lt;a style="color: rgb(0, 0, 0);"&gt;Algothematics Team&lt;/a&gt; will be the last.&lt;br /&gt;&lt;br /&gt;First two teams reaching the final level will be adjudged victorious..&lt;br /&gt;&lt;br /&gt;So pull up your socks, hone your programming skills.. &lt;a style="color: rgb(0, 0, 0);" href="http://algothematics.zealicon.org/" target="_blank"&gt;Algothematics&lt;/a&gt; is about to begin..!!! (9th March, 20:00)&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-6786782101612467461?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/6786782101612467461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2011/03/algothematics-back-again.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/6786782101612467461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/6786782101612467461'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2011/03/algothematics-back-again.html' title='Algothematics.. back again !!'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-gALsVw3t7JI/TXcxOS464KI/AAAAAAAAAVU/gx5QSkVIQ0Y/s72-c/alo%2Bcopy.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-4039309958546055504</id><published>2011-02-05T10:41:00.000-08:00</published><updated>2011-02-12T08:33:18.261-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gettingStarted'/><category scheme='http://www.blogger.com/atom/ns#' term='USACO'/><title type='text'>Getting started with USACO</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/__JLOqnlHtik/TU2bySyzk5I/AAAAAAAAAUw/eXOyPNwIT8k/s1600/lo.gif"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 65px; height: 81px;" src="http://4.bp.blogspot.com/__JLOqnlHtik/TU2bySyzk5I/AAAAAAAAAUw/eXOyPNwIT8k/s400/lo.gif" border="0" alt="" id="BLOGGER_PHOTO_ID_5570279602467869586" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;a href="http://www.uwp.edu/sws/usaco/"&gt;USACO&lt;/a&gt; (or United States of America Coding Olympiad) is a programming competition primarily for students in USA. It allows codes to be written in c, c++, java and pascal programming languages. There are currently three divisions of the USACO: Bronze (easiest but requires some programming ability), Silver, and Gold (hardest). Participants advance through the divisions by performing well in their current division, or in a qualifying round.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Training pages, internet competitions, US Open ( please don't confuse it with the grand slam :P ) form the basic three parts of USACO. Of these three - training pages are of our interest. These pages are designed to develop one's skills in programming solutions to difficult and varied algorithmic problems at one's own pace. In addition to around several problems, there are texts on programming techniques such as greedy algorithms, dynamic programming, shortest path and many more. Enthusiasts find the training pages so useful that people from other countries use them to prepare for their own national or international  level competitions. Amazing thing is that today the coders from other countries have out numbered the US participants !! :P&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;For getting started with USACO you can register by clicking &lt;a href="http://www.uwp.edu/sws/usaco/"&gt;here&lt;/a&gt;. After the registration you can begin with the chapters and corresponding sections through the USACO gateway. The submissions at USACO must conform by following rules:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;ul&gt;&lt;li&gt;All solutions must have a header as follows:&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;/*&lt;/div&gt;&lt;div style="text-align: justify;"&gt;ID: YourId&lt;/div&gt;&lt;div style="text-align: justify;"&gt;PROG: the name of program which will be provided in the problem statement itself&lt;/div&gt;&lt;div style="text-align: justify;"&gt;LANG: preferred language&lt;/div&gt;&lt;div style="text-align: justify;"&gt;*/&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;ul&gt;&lt;li&gt; The input needs to be read from a file named PROG.in (PROG refers to name of the program as mentioned in header) and output written onto another file named PROG.out.&lt;/li&gt;&lt;li&gt;The output file must have a whitespace at the end else it will not compile.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Here's my solution to a problem named Dual Palindromes:&lt;br /&gt;&lt;pre style="color:#000000;background:#ffffff;"&gt;&lt;br /&gt;&lt;div class="cpp" style="font-family:monospace;color: #006; border: 1px solid #d0d0d0; background-color: #f0f0f0;"&gt;&lt;span style="color: #ff0000; font-style: italic;"&gt;/*&lt;br /&gt;&lt;br /&gt;ID: vaibhav4&lt;br /&gt;&lt;br /&gt;PROG: dualpal&lt;br /&gt;&lt;br /&gt;LANG: C++&lt;br /&gt;&lt;br /&gt;*/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #339900;"&gt;#include&amp;lt;fstream&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #339900;"&gt;#include&amp;lt;iostream&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0000ff;"&gt;using&lt;/span&gt; &lt;span style="color: #0000ff;"&gt;namespace&lt;/span&gt; std&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0000ff;"&gt;int&lt;/span&gt; isPal&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;string a&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #008000;"&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;span style="color: #0000ff;"&gt;int&lt;/span&gt; i,j&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;span style="color: #0000ff;"&gt;for&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;i&lt;span style="color: #000080;"&gt;=&lt;/span&gt;&lt;span style="color: #0000dd;"&gt;0&lt;/span&gt;,j&lt;span style="color: #000080;"&gt;=&lt;/span&gt;a.&lt;span style="color: #007788;"&gt;size&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt;&lt;span style="color: #000040;"&gt;-&lt;/span&gt;&lt;span style="color: #0000dd;"&gt;1&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;i&lt;span style="color: #000080;"&gt;&amp;lt;&lt;/span&gt;j&lt;span style="color: #008080;"&gt;;&lt;/span&gt;i&lt;span style="color: #000040;"&gt;++&lt;/span&gt;,j&lt;span style="color: #000040;"&gt;--&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color: #0000ff;"&gt;if&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;a&lt;span style="color: #008000;"&gt;&amp;#91;&lt;/span&gt;i&lt;span style="color: #008000;"&gt;&amp;#93;&lt;/span&gt;&lt;span style="color: #000040;"&gt;!&lt;/span&gt;&lt;span style="color: #000080;"&gt;=&lt;/span&gt;a&lt;span style="color: #008000;"&gt;&amp;#91;&lt;/span&gt;j&lt;span style="color: #008000;"&gt;&amp;#93;&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt; &lt;span style="color: #0000ff;"&gt;return&lt;/span&gt; &lt;span style="color: #0000dd;"&gt;0&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;span style="color: #0000ff;"&gt;return&lt;/span&gt; &lt;span style="color: #0000dd;"&gt;1&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #008000;"&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;string conv&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;int&lt;/span&gt; decimal, &lt;span style="color: #0000ff;"&gt;int&lt;/span&gt; base&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #008000;"&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;span style="color: #0000ff;"&gt;if&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;decimal &lt;span style="color: #000080;"&gt;==&lt;/span&gt; &lt;span style="color: #0000dd;"&gt;0&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt; &lt;span style="color: #0000ff;"&gt;return&lt;/span&gt; &lt;span style="color: #FF0000;"&gt;&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;span style="color: #0000ff;"&gt;char&lt;/span&gt; NUMS&lt;span style="color: #008000;"&gt;&amp;#91;&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#93;&lt;/span&gt; &lt;span style="color: #000080;"&gt;=&lt;/span&gt; &lt;span style="color: #FF0000;"&gt;&amp;quot;0123456789ABCDEFGHIJ&amp;quot;&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;string result &lt;span style="color: #000080;"&gt;=&lt;/span&gt; &lt;span style="color: #FF0000;"&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;span style="color: #0000ff;"&gt;do&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;span style="color: #008000;"&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;result.&lt;span style="color: #007788;"&gt;push_back&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;NUMS&lt;span style="color: #008000;"&gt;&amp;#91;&lt;/span&gt;decimal&lt;span style="color: #000040;"&gt;%&lt;/span&gt;base&lt;span style="color: #008000;"&gt;&amp;#93;&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;decimal &lt;span style="color: #000040;"&gt;/&lt;/span&gt;&lt;span style="color: #000080;"&gt;=&lt;/span&gt; base&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;span style="color: #008000;"&gt;&amp;#125;&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;while&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;decimal &lt;span style="color: #000040;"&gt;!&lt;/span&gt;&lt;span style="color: #000080;"&gt;=&lt;/span&gt; &lt;span style="color: #0000dd;"&gt;0&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;span style="color: #0000ff;"&gt;return&lt;/span&gt; string&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;result.&lt;span style="color: #007788;"&gt;rbegin&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt;, result.&lt;span style="color: #007788;"&gt;rend&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #008000;"&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0000ff;"&gt;int&lt;/span&gt; main&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #008000;"&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;ifstream &lt;span style="color: #0000dd;"&gt;cin&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #FF0000;"&gt;&amp;quot;dualpal.in&amp;quot;&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;ofstream &lt;span style="color: #0000dd;"&gt;cout&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #FF0000;"&gt;&amp;quot;dualpal.out&amp;quot;&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;span style="color: #0000ff;"&gt;int&lt;/span&gt; s,n,i,count&lt;span style="color: #000080;"&gt;=&lt;/span&gt;&lt;span style="color: #0000dd;"&gt;0&lt;/span&gt;,count1&lt;span style="color: #000080;"&gt;=&lt;/span&gt;&lt;span style="color: #0000dd;"&gt;0&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;span style="color: #0000dd;"&gt;cin&lt;/span&gt;&lt;span style="color: #000080;"&gt;&amp;gt;&amp;gt;&lt;/span&gt;n&lt;span style="color: #000080;"&gt;&amp;gt;&amp;gt;&lt;/span&gt;s&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;s&lt;span style="color: #000040;"&gt;++&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;span style="color: #0000ff;"&gt;while&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;count&lt;span style="color: #000040;"&gt;!&lt;/span&gt;&lt;span style="color: #000080;"&gt;=&lt;/span&gt;n&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;span style="color: #008000;"&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;count1&lt;span style="color: #000080;"&gt;=&lt;/span&gt;&lt;span style="color: #0000dd;"&gt;0&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color: #0000ff;"&gt;for&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;i&lt;span style="color: #000080;"&gt;=&lt;/span&gt;&lt;span style="color: #0000dd;"&gt;2&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;i&lt;span style="color: #000080;"&gt;&amp;lt;=&lt;/span&gt;&lt;span style="color: #0000dd;"&gt;10&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;i&lt;span style="color: #000040;"&gt;++&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color: #008000;"&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color: #0000ff;"&gt;if&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;isPal&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;conv&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;s,i&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;count1&lt;span style="color: #000040;"&gt;++&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color: #0000ff;"&gt;if&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#40;&lt;/span&gt;count1&lt;span style="color: #000080;"&gt;&amp;gt;=&lt;/span&gt;&lt;span style="color: #0000dd;"&gt;2&lt;/span&gt;&lt;span style="color: #008000;"&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color: #008000;"&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color: #0000dd;"&gt;cout&lt;/span&gt;&lt;span style="color: #000080;"&gt;&amp;lt;&amp;lt;&lt;/span&gt;s&lt;span style="color: #000080;"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span style="color: #FF0000;"&gt;&amp;quot;&lt;span style="color: #000099; font-weight: bold;"&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;count&lt;span style="color: #000040;"&gt;++&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color: #0000ff;"&gt;break&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color: #008000;"&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color: #008000;"&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;s&lt;span style="color: #000040;"&gt;++&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;span style="color: #008000;"&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;span style="color: #0000ff;"&gt;return&lt;/span&gt; &lt;span style="color: #0000dd;"&gt;0&lt;/span&gt;&lt;span style="color: #008080;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #008000;"&gt;&amp;#125;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Hope it's now easy to get started with USACO..&lt;/div&gt;&lt;div style="text-align: left;"&gt;Happy Coding !!&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&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/8016010059186253016-4039309958546055504?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/4039309958546055504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2011/02/getting-started-with-usaco.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/4039309958546055504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/4039309958546055504'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2011/02/getting-started-with-usaco.html' title='Getting started with USACO'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/__JLOqnlHtik/TU2bySyzk5I/AAAAAAAAAUw/eXOyPNwIT8k/s72-c/lo.gif' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-979884078361799543</id><published>2011-01-06T05:09:00.000-08:00</published><updated>2011-01-06T05:41:58.266-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='programming contests'/><category scheme='http://www.blogger.com/atom/ns#' term='acm-icpc'/><title type='text'>an ACM experience</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/__JLOqnlHtik/TSXExVpGrHI/AAAAAAAAAS8/_I9niFDBLHY/s1600/100_1784.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://3.bp.blogspot.com/__JLOqnlHtik/TSXExVpGrHI/AAAAAAAAAS8/_I9niFDBLHY/s400/100_1784.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5559065666960927858" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;..and finally we disembarked at Kanpur. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;Competing at the world's most prestigious programming event (even at the regional level  &lt;span class="Apple-style-span"&gt;:P&lt;/span&gt; ) looked just like a dream earlier but not any more. On 11th of December 2010, we were on our way to IIT Kanpur  for competing with some of the best coders of this country. We were (Team name: &lt;b&gt;&lt;span class="Apple-style-span"&gt;Elites&lt;/span&gt;&lt;/b&gt;) amongst the top 50 teams of Northern India who were invited to participate at the ACM regional level after qualifying the prelims, which was held earlier amongst more than &lt;a href="http://yg.cse.iitk.ac.in/~acm/ACMRegistration/AllTeamStatus.php"&gt;200 teams&lt;/a&gt;.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;On reaching the campus we were greeted with two goody bags. One was from ACM itself and the second came from &lt;a href="http://www.directi.com/"&gt;Directi&lt;/a&gt;, the official sponsers of the event. Goody bags were loaded with some really good stuff ranging from T-shirts, diaries to pens and badges. Great hospitality, awesome management and top-class environment at IIT Kanpur were the things they can really boast about.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;On 12th December the teams competed for five hours. There were ten problems given. By the end, we managed to solve three problems (and managed to win three pen drives !!! &lt;span class="Apple-style-span"&gt;:P&lt;/span&gt; ). The team from Indonesia (&lt;span class="Apple-style-span"&gt;&lt;b&gt;Dongskar Pedongi&lt;/b&gt;&lt;/span&gt;) came first solving eight questions whereas team from IIIT Hyderabad (&lt;span class="Apple-style-span"&gt;&lt;b&gt;Any Dream&lt;/b&gt;&lt;/span&gt;) came second solving seven probelms. The team from Hyderabad included &lt;a href="http://www.codechef.com/users/naughty"&gt;&lt;b&gt;Yash Kumar&lt;/b&gt;&lt;/a&gt; and &lt;a href="http://www.codechef.com/users/nadeemoidu"&gt;&lt;b&gt;Nadeem Moidu&lt;/b&gt;&lt;/a&gt;, who held the second and fifth position in the &lt;a href="http://codedash.aol.in/winners/"&gt;AOL CodeDash competition&lt;/a&gt; too.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;But the team that made it to Egypt (for world finals) was from IIT Kanpur (&lt;span class="Apple-style-span"&gt;&lt;b&gt;Deep thought&lt;/b&gt;&lt;/span&gt;). I would like to further elaborate details about the team members. The team consisted of three members: &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;a href="http://www.blogger.com/profile/15417996957918086829"&gt;&lt;b&gt;Raziman TV&lt;/b&gt;&lt;/a&gt;, who is a blogger and you can visit his blog "Mistranslated" &lt;a href="http://razimanmistranslated.blogspot.com/"&gt;here&lt;/a&gt;. He has won many such events both at the regional and the world level. The entire achievements list of Raziman can be seen &lt;a href="http://greycells-kerala.blogspot.com/2007/01/raziman-t-v.html"&gt;here&lt;/a&gt;. Now possibly he has one more achievement of ACM to brag about!! &lt;span class="Apple-style-span"&gt;:D&lt;/span&gt; &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;a href="http://home.iitk.ac.in/~shiti/"&gt;&lt;b&gt;Shitikanth&lt;/b&gt;&lt;/a&gt; was the second member. He topped the IIT-JEE 2008 examination (AIR-1). He is a regular &lt;a href="http://www.codechef.com/users/shiti"&gt;codechef member&lt;/a&gt; too.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;a href="http://home.iitk.ac.in/~utkarshl/index.html"&gt;&lt;b&gt;Utkarsh Lath&lt;/b&gt;&lt;/a&gt; is also a &lt;a href="http://www.codechef.com/users/utkarsh_lath"&gt;codechef member&lt;/a&gt; and much higher placed than his colleague Shitikanth.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;With such great coders IIT Kanpur really deserved to win the world finals berth.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Later in the prize distribution ceremony, I was pleased to see my friend &lt;a href="http://www.topcoder.com/tc?module=MemberProfile&amp;amp;cr=22827591"&gt;&lt;b&gt;Rahul Gulati&lt;/b&gt;&lt;/a&gt; (Team name: &lt;span class="Apple-style-span"&gt;HyperHexagon&lt;/span&gt;) secure the tenth place. We (with &lt;a href="http://www.topcoder.com/tc?module=MemberProfile&amp;amp;cr=22887958"&gt;&lt;b&gt;Prateek Gupta&lt;/b&gt;&lt;/a&gt; and &lt;a href="http://www.topcoder.com/tc?module=MemberProfile&amp;amp;cr=22875994"&gt;&lt;b&gt;Ankit Jain&lt;/b&gt;&lt;/a&gt; as my team-mates) were amongst the honourable mentioned ones as we managed to solve more than one question. With more than half a dozen of certis we bid IIT Kanpur adieu.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Summing up the entire event.. it was really an amazing ACM experience.. &lt;span class="Apple-style-span"&gt;:)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-979884078361799543?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/979884078361799543/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2011/01/acm-experience.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/979884078361799543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/979884078361799543'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2011/01/acm-experience.html' title='an ACM experience'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/__JLOqnlHtik/TSXExVpGrHI/AAAAAAAAAS8/_I9niFDBLHY/s72-c/100_1784.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-6051914642958331536</id><published>2010-09-26T07:54:00.000-07:00</published><updated>2010-09-26T08:03:19.298-07:00</updated><title type='text'>My Stackoverflow Badge</title><content type='html'>&lt;center&gt;&lt;a href="http://stackoverflow.com/users/172543/vaibhav"&gt;&lt;br /&gt;&lt;img src="http://stackoverflow.com/users/flair/172543.png" width="208" height="58" alt="Stack Overflow profile for vaibhav" title="Stack Overflow profile for vaibhav" /&gt;&lt;br /&gt;&lt;/a&gt;&lt;/center&gt;&lt;center&gt;&lt;span class="Apple-style-span"&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/center&gt;&lt;center style="text-align: left;"&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/center&gt;&lt;br /&gt;This is my Stackoverflow badge. &lt;a href="http://www.stackoverflow.com"&gt;Stackoverflow&lt;/a&gt;, as most of you would be knowing, is a website part of the Stack Exchange Network featuring questions and answers on a wide range of topics in computer programming.&lt;div&gt;I have earned these many points asking questions and posting some quality answers on topics ranging from c/c++ programming, asp. net, Eclipse and Android.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-6051914642958331536?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/6051914642958331536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/09/my-stackoverflow-badge.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/6051914642958331536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/6051914642958331536'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/09/my-stackoverflow-badge.html' title='My Stackoverflow Badge'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-6031163400845420193</id><published>2010-09-07T13:35:00.001-07:00</published><updated>2010-09-07T13:38:20.463-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='project euler'/><title type='text'>My Project Euler Badge</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://projecteuler.net/profile/vaibhav5388.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 60px;" src="http://projecteuler.net/profile/vaibhav5388.png" border="0" alt="" /&gt;&lt;/a&gt;Above is my Project Euler Badge. It shows my username and the number of questions I have solved. It keeps on changing dynamically.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-6031163400845420193?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/6031163400845420193/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/09/my-project-euler-badge.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/6031163400845420193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/6031163400845420193'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/09/my-project-euler-badge.html' title='My Project Euler Badge'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-8833531033885820863</id><published>2010-08-21T12:40:00.000-07:00</published><updated>2010-08-21T12:52:23.806-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gettingStarted'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Getting started with Linux File System</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/__JLOqnlHtik/THAsti7Vr9I/AAAAAAAAARg/vSLNe1JZGlM/s1600/linux.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 200px;" src="http://2.bp.blogspot.com/__JLOqnlHtik/THAsti7Vr9I/AAAAAAAAARg/vSLNe1JZGlM/s320/linux.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5507951505255542738" /&gt;&lt;/a&gt;&lt;div style="text-align: left;"&gt;via my friend &lt;b&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;a href="http://www.blogger.com/profile/00397403877445210171"&gt;Prateek Gupta&lt;/a&gt; &lt;/span&gt;&lt;/b&gt;...&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: 13px; color: rgb(51, 51, 51); line-height: 19px; "&gt;&lt;p&gt;For those of you coming from windows background, the way the linux filesystem is laid out may seem confusing at first glance…. but that is where this article comes in !&lt;/p&gt;&lt;p&gt;The first thing you should know when working with linux, is that everything is treated as either a file or directory. Yep thats right, even hardware is considered a file by linux, and, speaking of hardware… all your hardware devices are located in the&lt;span style="font-weight: bold; font-style: italic; "&gt; /dev &lt;/span&gt;directory, but more on that... later.&lt;/p&gt;&lt;p&gt;Another thing that confuses windows users, is the fact that linux dosen’t use drive letters to distinguish between different partitions and devices. that is to say in linux, the “root” of your filesystem is / whereas in windows it would most probably be C:\ . Drives in linux are “mounted” to directories where their data can then be accessed, so for instance, if you needed to use your thumbdrive, you would plug it into your computer, and then mount it using the “mount” command, which specifies the path to the device ( something like /dev/sdb or /dev/sdc ) and the directory to mount it to (usually /mnt or /media), then you can happily access your drive from the /mnt or /media folder.&lt;/p&gt;&lt;p&gt;Sounds strange right? well yes it does if you come from a windows environment, where the entire operating system is consolidated onto a single drive. However, with linux and the ability to mount devices as directories, it gives the end user much greater flexibility in splitting up their operating system over several drives or partitions.&lt;/p&gt;&lt;p&gt;To understand what I mean when I say that this approach in mounting drives grants flexibility, I must first explain the different folders in linux and what they store &lt;span style="font-weight: bold; font-style: italic; "&gt;/&lt;/span&gt; this is the root folder, all other folders come under root.. think of it as C:\ in a Windows context.&lt;/p&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: 13px; color: rgb(51, 51, 51); line-height: 19px; "&gt;&lt;p style="text-align: left; "&gt;&lt;span style="font-weight: bold; font-style: italic; "&gt;/bin &lt;/span&gt;this folder contains all the user-essential binaries (programs) that are needed to administer and run your linux system… delete this folder and your system is broken.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="font-weight: bold; font-style: italic; "&gt;/boot&lt;/span&gt; as the name suggests, this folder contains configuration files and other necessary files that are needed by the bootloader&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="font-weight: bold; font-style: italic; "&gt;/dev&lt;/span&gt; this folder contains device files (remember, these files represent physical devices, so be careful when working with them)&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="font-weight: bold; font-style: italic; "&gt;/etc&lt;/span&gt; this folder contains all the configuration files used by the system, you can also start and stop services (daemons ) from here&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="font-weight: bold; font-style: italic; "&gt;/home&lt;/span&gt; this folder contains the home folders of all the normal (non – root ) users on the system .. think of it as my documents in windows&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="font-weight: bold; font-style: italic; "&gt;/lib&lt;/span&gt; this folder contains software libraries&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="font-style: italic; "&gt;&lt;b&gt;/media&lt;/b&gt;&lt;/span&gt; this is a mount point for removable devices… this is where you would usually mount your thumbdrives … etc&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="font-weight: bold; font-style: italic; "&gt;/mnt&lt;/span&gt; this is a temporary mount point&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="font-weight: bold; font-style: italic; "&gt;/opt&lt;/span&gt; this folder contains add on software (extra software)&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="font-weight: bold; font-style: italic; "&gt;/sbin&lt;/span&gt; this folder contains binaries that can only be run as the root user (”superuser”)&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="font-weight: bold; font-style: italic; "&gt;/tmp&lt;/span&gt; this folder contains temporary files that are erased upon reboot&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="font-weight: bold; font-style: italic; "&gt;/usr&lt;/span&gt; this folder and its subfolders contains user installed programs and utilities and libraries&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="font-weight: bold; font-style: italic; "&gt;/var&lt;/span&gt; this folder contains files that change alot (”Variable files”)&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="font-weight: bold; font-style: italic; "&gt;/root&lt;/span&gt; this folder contians the root user’s files&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="font-weight: bold; font-style: italic; "&gt;/proc&lt;/span&gt; this is a psuedo folder, that contains information about the linux kernel and hardware that is updated in realtime.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;/p&gt;&lt;p style="text-align: left; "&gt;Now back to how mounting grants flexibility…&lt;/p&gt;&lt;p style="text-align: left; "&gt;You see, how the different folders all contain parts of the operating system? Well we can actually mount a seperate hard drive for each of this folders. for example, your &lt;b&gt;/home&lt;/b&gt; folder can be put on another harddrive than your &lt;b&gt;/&lt;/b&gt; which means that you can easily recover your personal files if the harddrive on &lt;b&gt;/&lt;/b&gt; fails because the harddrive mounted to your /home folder is seperate from the one that is mounted to your &lt;b&gt;/&lt;/b&gt;&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;/p&gt;&lt;p style="text-align: left; "&gt;So there you have it, you now know a lttle bit more about the nuts and bolts of linux based operating systems.&lt;/p&gt;&lt;p style="text-align: center;"&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/8016010059186253016-8833531033885820863?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/8833531033885820863/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/08/getting-started-with-linux-file-system.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/8833531033885820863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/8833531033885820863'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/08/getting-started-with-linux-file-system.html' title='Getting started with Linux File System'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/__JLOqnlHtik/THAsti7Vr9I/AAAAAAAAARg/vSLNe1JZGlM/s72-c/linux.png' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-8809492448539070431</id><published>2010-07-25T05:41:00.000-07:00</published><updated>2011-02-15T11:48:24.591-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>My Android Applications</title><content type='html'>&lt;div&gt;&lt;div&gt;&lt;div&gt;During the summer internship I learned about interesting and innovative work of Android Application Development. I have already posted about getting started with it and some important links in my earlier posts. In this post I m going to discuss some of the applications I built.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;Info Displayer:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Info displayer is a simple and light application. No doubt, it was my first app :). The application fetches some important information about your Android Device, such as, the device number, the hardware, the Manufacturer, Product, Model, Time etc. The application used "build" library and its functions to fetch the information.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://2.bp.blogspot.com/__JLOqnlHtik/TEwxcsLZX8I/AAAAAAAAAQ4/ywBiIvLyWe0/s1600/4th+app.jpg"&gt;&lt;img src="http://2.bp.blogspot.com/__JLOqnlHtik/TEwxcsLZX8I/AAAAAAAAAQ4/ywBiIvLyWe0/s320/4th+app.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5497823614077591490" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 320px; height: 200px; " /&gt;&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Webber:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Webber claims to be the world's simplest browser. It just has a text box to write a URL and the view below it, which fetches the web-page. It doesn't allow the default browser to hinder its working. I used an EditText and a WebView to present this app. Other stuff was just a cake walk.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://1.bp.blogspot.com/__JLOqnlHtik/TEwx74IzW-I/AAAAAAAAARA/Am5lazxHhao/s1600/my+app-2_2.jpg"&gt;&lt;img src="http://1.bp.blogspot.com/__JLOqnlHtik/TEwx74IzW-I/AAAAAAAAARA/Am5lazxHhao/s320/my+app-2_2.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5497824149863881698" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 320px; height: 200px; " /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;b&gt;Sleek Feed:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Sleek Feed is an application that displays the feeds of the saved URL. The application parses the XML file, and gets the titles of the latest feeds and displays it onto the screen. The URL is feeded by the user himself through the admin panel. The main feature of the application is the fact that it saves the previous URL feeded in the admin panel.&lt;/div&gt;&lt;div&gt;To view its complete working see the video &lt;a href="http://www.youtube.com/watch?v=js7x2rAXdkc"&gt;here on youtube&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/__JLOqnlHtik/TEwyij20OcI/AAAAAAAAARI/jeEjt8oreIY/s1600/sleek+feed.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 200px;" src="http://1.bp.blogspot.com/__JLOqnlHtik/TEwyij20OcI/AAAAAAAAARI/jeEjt8oreIY/s320/sleek+feed.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5497824814434630082" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;One thing I learned while building these apps that "it's not knowledge, but it's innovation, that matters a lot while completing an entire project."&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-8809492448539070431?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/8809492448539070431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/07/my-android-applications.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/8809492448539070431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/8809492448539070431'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/07/my-android-applications.html' title='My Android Applications'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/__JLOqnlHtik/TEwxcsLZX8I/AAAAAAAAAQ4/ywBiIvLyWe0/s72-c/4th+app.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-6244836918410609033</id><published>2010-07-15T07:38:00.000-07:00</published><updated>2010-07-15T08:01:13.033-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gettingStarted'/><category scheme='http://www.blogger.com/atom/ns#' term='google'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Some useful links for building Android Apps</title><content type='html'>&lt;div&gt;Working on Android Application Development I came across some very useful links that every Android App Developer must follow. Here is my "Delicious.com" &lt;a href="http://delicious.com/vaibhav.einstein"&gt;account&lt;/a&gt;, you can look for all the bookmarks I have saved. &lt;/div&gt;&lt;div&gt;In this post I am recommending some of the important Android forums and websites. By this time you must obviously be familiar with the official &lt;a href="http://developer.android.com/index.html"&gt;Android Developer Website&lt;/a&gt; where you can find the entire documentation of the project. Do add yourself to the &lt;a href="http://groups.google.com/group/android-developers"&gt;Android Google Group&lt;/a&gt; for asking all your queries. For hosting your applications access its &lt;a href="http://www.android.com/market/"&gt;Official Marketplace&lt;/a&gt;. &lt;/div&gt;&lt;div&gt;Besides these regular sites which everyone accesses, I m here to share some more websites that can help novice get started and go on further with the Android App development. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;(Click the titles for opening the pages)..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;a href="http://www.vogella.de/articles/Android/article.html"&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;Getting started:&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;a href="http://www.vogella.de/articles/Android/article.html"&gt; &lt;/a&gt; &lt;/div&gt;&lt;div&gt;Here's Lars Vogel with his tutorial for getting started with Android App Development. Besides getting started, it also teaches to build a hello world app, demonstrates how to build menus and work with preferences, a nice content provider example and how to make a file browser. At last it demonstrates how to deploy your app onto a real device.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;&lt;a href="http://marakana.com/forums/android/examples/"&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;Marakana Tutorials: &lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;This is one of my best recommendations. Some very nice demo projects are hosted on the site. Studying &lt;a href="http://marakana.com/forums/android/examples/67.html"&gt;Motto Twitter&lt;/a&gt; project  can help understand the concepts in depth. Certain API's have also been explained in the tutorials. The use of bluetooth and camera may become very clear refering to their API tutorials.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;&lt;a href="http://smartandroidians.blogspot.com/"&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;Androidians: &lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Nice tutorials by &lt;a href="http://www.blogger.com/profile/09230802157521324416"&gt;Nithin Warreir&lt;/a&gt;. The blog contains some code snippets that help during development of big projects. One can learn implementation of various tools of Android development easily here. I have even added the admin to my gmail contacts and regularly ask him to review my applications.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;a href="http://www.anddev.org/"&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;Android Forum:&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Anddev forum is pretty famous for having a large number of online users everytime. For any query you can easily post a question in this forum. Wait for the help that comes in just a few minutes. One can also use the android tag of &lt;a href="http://stackoverflow.com/questions/tagged/android"&gt;Stackoverflow&lt;/a&gt;, but mind you, it's lame..!! Too slow responses and you'll end answering your own question later which doesn't contribute to the repo at all.. &lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;:P&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;a href="http://slideme.org/"&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;SlideME Android Market Place (Free for developers):&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Besides the Official Marketplace, this is another marketplace that hosts developer's applications. For registering as developer in the official marketplace, one needs to pay $25, here lies the advantage of joining SlideMe, it is free..!! &lt;/div&gt;&lt;div&gt;Register yourself and deploy all your apps. The apps may be free or paid. The paid apps can only be downloaded from Android Phone through SlideMe market app. The website asks for copies of your project's ".apk" file and forms an inventory and on downloads you need to generate an invoice to redeem the money. Here is link for viewing &lt;a href="http://slideme.org/user/vaibhavpandey"&gt;my apps&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Happy developing &lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-6244836918410609033?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/6244836918410609033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/07/some-useful-links-for-building-android.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/6244836918410609033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/6244836918410609033'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/07/some-useful-links-for-building-android.html' title='Some useful links for building Android Apps'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-7517532479141982675</id><published>2010-06-02T11:06:00.000-07:00</published><updated>2010-06-02T14:26:54.160-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gettingStarted'/><category scheme='http://www.blogger.com/atom/ns#' term='google'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Getting started on Android Application Development</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.shaswatpatel.com/wp-content/uploads/2010/03/Android-OS.jpg"&gt;&lt;br /&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 400px;" src="http://www.shaswatpatel.com/wp-content/uploads/2010/03/Android-OS.jpg" alt="" border="0" /&gt;&lt;/a&gt;Working as an intern at &lt;a href="http://www.webkul.com/"&gt;webkul&lt;/a&gt;, I set up Android on my PC. Here's the entire documentation I submitted.&lt;br /&gt;&lt;div&gt;&lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size:14pt;"&gt;Simple Steps for getting started with the Android Application Development on Windows:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;b&gt;&lt;span style="color:black;"&gt;Step-1:&lt;span style=""&gt; &lt;/span&gt;Downloads&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;  &lt;ul style="margin-top: 0in;" type="disc"&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;Download the&lt;/span&gt;&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;a href="http://www.eclipse.org/downloads/" target="_blank"&gt;&lt;span style="text-decoration: none;"&gt;Eclipse IDE      for Java EE Developers&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;span class="apple-style-span"&gt;(it's 163 MB). (http://www.eclipse.org/downloads)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;&lt;a href="http://code.google.com/android/download_list.html" target="_blank"&gt;&lt;span style="text-decoration: none;"&gt;Download the      Android SDK&lt;/span&gt;&lt;/a&gt;. Once the SDK is downloaded, unzip the SDK into a      folder.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="color:black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color:black;"&gt;Step-2:&lt;span style=""&gt;  &lt;/span&gt;Configure Ellipse&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ul style="margin-top: 0in;" type="disc"&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;Start Eclipse&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;Goto to Help-&gt;Install New Software. &lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;Hit Add.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;For the name, type “Android” and set the link to &lt;i&gt;“&lt;/i&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-style: normal;"&gt;https://dl-ssl.google.com/android/eclipse/&lt;/span&gt;&lt;/em&gt;&lt;span class="apple-style-span"&gt;” (if this doesn’t work, try it with http://      instead of http&lt;/span&gt;&lt;strong&gt;s&lt;/strong&gt;&lt;span class="apple-style-span"&gt;://).&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;Click OK.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color:black;"&gt;&lt;o:p&gt; &lt;b&gt;&lt;span style="color:black;"&gt;Step-3:&lt;span style=""&gt;  &lt;/span&gt;Add ADT (Android Development Tools)&lt;/span&gt;&lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul style="margin-top: 0in;" type="disc"&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;Download the tools from &lt;/span&gt;&lt;span style="color:#000000;"&gt;&lt;a href="http://developer.android.com/sdk/index.html"&gt;http://developer.android.com/sdk/index.html&lt;/a&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="color:black;"&gt;&lt;o:p&gt; &lt;b&gt;&lt;span style="color:black;"&gt;Step-4:&lt;span style=""&gt;  &lt;/span&gt;Configure Android SDK&lt;/span&gt;&lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul style="margin-top: 0in;" type="disc"&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;Start SDK Setup.exe.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="color: black;"&gt;Install      all the packages needed.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="color: black;"&gt;SDK      Manager installs the tools.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="color:black;"&gt;&lt;o:p&gt; &lt;b&gt;&lt;span style="color:black;"&gt;Step-5:&lt;span style=""&gt;  &lt;/span&gt;Set up Android Virtual Device&lt;/span&gt;&lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul style="margin-top: 0in;" type="disc"&gt;  &lt;li class="MsoNormal" style="color: black;"&gt;Click      on Virtual Devices in SDK Manager.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="color: black;"&gt;It      creates an Android device that will test run the programs.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="color: black;"&gt;In      the name field: “any name”&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="color: black;"&gt;In      target field: “Android 2.2 – API Level 8”&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="color: black;"&gt;Select      Size as 20.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="color: black;"&gt;Hit      create.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="color: black;"&gt;Select      AVD from list&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="color: black;"&gt;Hit      Start&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="color:black;"&gt;&lt;o:p&gt; &lt;b&gt;&lt;span style="color:black;"&gt;Step-6:&lt;span style=""&gt;  &lt;/span&gt;Configure Eclipse again&lt;/span&gt;&lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul style="margin-top: 0in;" type="disc"&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color: rgb(51, 51, 51);"&gt;Open Eclipse&lt;/span&gt;&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color: rgb(51, 51, 51);"&gt;Goto      Window-&gt;Preferences&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="color: rgb(51, 51, 51);"&gt; &lt;/span&gt;&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color: rgb(51, 51, 51);"&gt;Select the&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="color: rgb(51, 51, 51);"&gt; Android &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color: rgb(51, 51, 51);"&gt;tab. &lt;/span&gt;&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color: rgb(51, 51, 51);"&gt;Browse to the location      of your Android SDK&lt;/span&gt;&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color: rgb(51, 51, 51);"&gt;Hit Apply.&lt;/span&gt;&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color: rgb(51, 51, 51);"&gt;Hit OK.&lt;/span&gt;&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color: rgb(51, 51, 51);"&gt;&lt;o:p&gt; &lt;span class="Apple-style-span" style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;&lt;span style="color:black;"&gt;Step-7:&lt;span style=""&gt;  &lt;/span&gt;Create a new Project&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul style="margin-top: 0in;" type="disc"&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;Goto File-&gt;New-&gt;Projects&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;Select Android Projects.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;Fill the required fields.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;Hit Finish&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style=""&gt;&lt;span class="apple-style-span"&gt;Start Coding.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color:black;"&gt;&lt;o:p&gt; &lt;b&gt;&lt;span style="color:black;"&gt;Step-8:&lt;span style=""&gt;  &lt;/span&gt;Run Your Program&lt;/span&gt;&lt;/b&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul style="margin-top: 0in;" type="disc"&gt;  &lt;li class="MsoNormal" style="color: black;"&gt;Press      F11.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="color: black;"&gt;Hit      Save.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="text-align: center;"&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/8016010059186253016-7517532479141982675?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/7517532479141982675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/06/getting-started-on-android-application.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/7517532479141982675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/7517532479141982675'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/06/getting-started-on-android-application.html' title='Getting started on Android Application Development'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-894079909529828743</id><published>2010-05-26T01:51:00.000-07:00</published><updated>2010-05-29T00:11:49.734-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='google code jam'/><category scheme='http://www.blogger.com/atom/ns#' term='c'/><category scheme='http://www.blogger.com/atom/ns#' term='google'/><title type='text'>Google Code Jam - 2010</title><content type='html'>It was during GCJ 2009 when I got myself more involved in coding stuff. I still remember my last year's post about my performance at &lt;a href="http://vaibhavtechno.blogspot.com/2009/09/google-code-jam-2009.html"&gt;GCJ 2009&lt;/a&gt;. I can happily and proudly say that yes this year I showed some improvement..!!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Qualification Round:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The round started early morning and made me code even when the semesters were approaching..!! Nevertheless I went on for the &lt;a href="http://code.google.com/codejam/contest/dashboard?c=433101#s=p2"&gt;third problem&lt;/a&gt; (Theme Park) first as it seemed much easier than others. Here's my code which I submitted for the correct submission.&lt;br /&gt;&lt;br /&gt;&lt;pre style="border: 1px dashed rgb(153, 153, 153); padding: 5px; overflow: auto; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; color: rgb(0, 0, 0); background-color: rgb(238, 238, 238); font-size: 12px; line-height: 14px; width: 100%;"&gt;&lt;code&gt;#include&amp;lt;iostream&amp;gt;&lt;br /&gt;#include&amp;lt;fstream&amp;gt;&lt;br /&gt;#include&amp;lt;sstream&amp;gt;&lt;br /&gt;#include&amp;lt;vector&amp;gt;&lt;br /&gt;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;   int t,i,e=0,c=0,r,k,n,x,ans=0,flag=0,j,m=0;&lt;br /&gt;   vector&amp;lt;int&amp;gt; a,f;&lt;br /&gt;   ifstream fin("C-small-attempt0.in");&lt;br /&gt;   ofstream fout("output.in");&lt;br /&gt;   //ofstream fout("output.in");&lt;br /&gt;   fin&amp;gt;&amp;gt;t;&lt;br /&gt;   //cout&amp;lt;&amp;lt;t&amp;lt;&amp;lt;"\n";&lt;br /&gt;   while(t--)&lt;br /&gt;   {&lt;br /&gt;       m++;&lt;br /&gt;       ans=0;&lt;br /&gt;       e=0;c=0;&lt;br /&gt;       a.clear();&lt;br /&gt;       f.clear();&lt;br /&gt;       fin&amp;gt;&amp;gt;r&amp;gt;&amp;gt;k&amp;gt;&amp;gt;n;&lt;br /&gt;       for(i=0;i&amp;lt;n;i++)&lt;br /&gt;       {&lt;br /&gt;           fin&amp;gt;&amp;gt;x;&lt;br /&gt;           a.push_back(x);&lt;br /&gt;       }&lt;br /&gt;       i=0;&lt;br /&gt;       while(e!=r)&lt;br /&gt;       {&lt;br /&gt;           e++;&lt;br /&gt;           c=0;&lt;br /&gt;           f.clear();&lt;br /&gt;           flag=0;&lt;br /&gt;           while(c&amp;lt;=k)&lt;br /&gt;           {&lt;br /&gt;               if(i&amp;gt;=a.size()) break;&lt;br /&gt;               c+=a[i];&lt;br /&gt;               if(c&amp;gt;k) break;&lt;br /&gt;               else&lt;br /&gt;               {&lt;br /&gt;                   f.push_back(a[i]);&lt;br /&gt;                   ans+=a[i];&lt;br /&gt;                   i++;&lt;br /&gt;               }&lt;br /&gt;           }&lt;br /&gt;           for(j=0;j&amp;lt;f.size();j++)&lt;br /&gt;               a.push_back(f[j]);&lt;br /&gt;       }&lt;br /&gt;       fout&amp;lt;&amp;lt;"Case #"&amp;lt;&amp;lt;m&amp;lt;&amp;lt;": "&amp;lt;&amp;lt;ans&amp;lt;&amp;lt;"\n";&lt;br /&gt;   }&lt;br /&gt;   return 0;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The code didn't suffice for the large test cases and I switched my attention to the first problem. After finding the logic of the problem it was a cake to write the code which even survived the large test cases and made our way to round-1 clear. Here's the code for &lt;a href="http://code.google.com/codejam/contest/dashboard?c=433101#s=p0"&gt;problem-1&lt;/a&gt; (Snapper Chain)&lt;br /&gt;&lt;br /&gt;&lt;pre style="border: 1px dashed rgb(153, 153, 153); padding: 5px; overflow: auto; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; color: rgb(0, 0, 0); background-color: rgb(238, 238, 238); font-size: 12px; line-height: 14px; width: 100%;"&gt;&lt;code&gt;&lt;br /&gt;#include&amp;lt;iostream&amp;gt;&lt;br /&gt;#include&amp;lt;fstream&amp;gt;&lt;br /&gt;#include&amp;lt;math.h&amp;gt;&lt;br /&gt;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;   int t,n,k,c,s,m=0;&lt;br /&gt;   ifstream fin("A-small-attempt1.in");&lt;br /&gt;   ofstream fout("output1.in");&lt;br /&gt;   fin&amp;gt;&amp;gt;t;&lt;br /&gt;   while(t--)&lt;br /&gt;   {&lt;br /&gt;       m++;&lt;br /&gt;       fin&amp;gt;&amp;gt;n&amp;gt;&amp;gt;k;&lt;br /&gt;       c=pow(2,n)-1;&lt;br /&gt;       if(k&amp;lt;c)&lt;br /&gt;       {&lt;br /&gt;           fout&amp;lt;&amp;lt;"Case #"&amp;lt;&amp;lt;m&amp;lt;&amp;lt;": "&amp;lt;&amp;lt;"OFF\n";&lt;br /&gt;           continue;&lt;br /&gt;       }&lt;br /&gt;       else&lt;br /&gt;       {&lt;br /&gt;           s=c;&lt;br /&gt;           while(s&amp;lt;k)&lt;br /&gt;           {&lt;br /&gt;               s+=(c+1);&lt;br /&gt;           }&lt;br /&gt;           //cout&amp;lt;&amp;lt;s&amp;lt;&amp;lt;" "&amp;lt;&amp;lt;k;&lt;br /&gt;           if(s==k)&lt;br /&gt;               fout&amp;lt;&amp;lt;"Case #"&amp;lt;&amp;lt;m&amp;lt;&amp;lt;": "&amp;lt;&amp;lt;"ON\n";&lt;br /&gt;           else&lt;br /&gt;               fout&amp;lt;&amp;lt;"Case #"&amp;lt;&amp;lt;m&amp;lt;&amp;lt;": "&amp;lt;&amp;lt;"OFF\n";&lt;br /&gt;         &lt;br /&gt;       }&lt;br /&gt;   }&lt;br /&gt;   return 0;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;With 43 points I advanced to Round-1.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Round-1C&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I was unable to code in round 1A and round 1B due to the sixth sem examination. Nevermind, I got my chance to survive in the last round. I successfully submitted the &lt;a href="http://code.google.com/codejam/contest/dashboard?c=619102#"&gt;problem-1&lt;/a&gt; (Rope Intranet) (both large and small datasets) for 22 pts. My code:&lt;br /&gt;&lt;br /&gt;&lt;pre style="border: 1px dashed rgb(153, 153, 153); padding: 5px; overflow: auto; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; color: rgb(0, 0, 0); background-color: rgb(238, 238, 238); font-size: 12px; line-height: 14px; width: 100%;"&gt;&lt;code&gt;#include &amp;lt;iostream&amp;gt;&lt;br /&gt;#include &amp;lt;fstream&amp;gt;&lt;br /&gt;#include &amp;lt;algorithm&amp;gt;&lt;br /&gt;#include &amp;lt;string&amp;gt;&lt;br /&gt;#include &amp;lt;sstream&amp;gt;&lt;br /&gt;#include &amp;lt;set&amp;gt;&lt;br /&gt;#include &amp;lt;map&amp;gt;&lt;br /&gt;#include &amp;lt;bitset&amp;gt;&lt;br /&gt;#include &amp;lt;stack&amp;gt;&lt;br /&gt;#include &amp;lt;queue&amp;gt;&lt;br /&gt;#include &amp;lt;deque&amp;gt;&lt;br /&gt;#include &amp;lt;vector&amp;gt;&lt;br /&gt;#include &amp;lt;cstdlib&amp;gt;&lt;br /&gt;#include &amp;lt;cstring&amp;gt;&lt;br /&gt;#include &amp;lt;cstdio&amp;gt;&lt;br /&gt;#include &amp;lt;math.h&amp;gt;&lt;br /&gt;#include &amp;lt;cctype&amp;gt;&lt;br /&gt;#include &amp;lt;iterator&amp;gt;&lt;br /&gt;#include &amp;lt;utility&amp;gt;&lt;br /&gt;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;   int m,t,ans,i,j,n,a,b;&lt;br /&gt;   vector&amp;lt;int&amp;gt; b1,b2;&lt;br /&gt;   ifstream fin("A-small-attempt0.in");&lt;br /&gt;   ofstream fout("o.out");&lt;br /&gt;   fin&amp;gt;&amp;gt;t;&lt;br /&gt;   for(m=1;m&amp;lt;=t;m++)&lt;br /&gt;   {&lt;br /&gt;       ans=0;&lt;br /&gt;       fin&amp;gt;&amp;gt;n;&lt;br /&gt;       for(i=0;i&amp;lt;n;i++)&lt;br /&gt;       {&lt;br /&gt;           fin&amp;gt;&amp;gt;a&amp;gt;&amp;gt;b;&lt;br /&gt;           b1.push_back(a);&lt;br /&gt;           b2.push_back(b);&lt;br /&gt;       }&lt;br /&gt;       for(i=0;i&amp;lt;b1.size();i++)&lt;br /&gt;       {&lt;br /&gt;           for(j=0;j&amp;lt;b1.size();j++)&lt;br /&gt;           {&lt;br /&gt;               if(i==j) break;&lt;br /&gt;               if((b1[i]&amp;lt;b1[j])&amp;amp;amp;&amp;amp;amp;(b2[i]&amp;gt;b2[j]))&lt;br /&gt;                   ans++;&lt;br /&gt;               else if((b1[i]&amp;gt;b1[j])&amp;amp;amp;&amp;amp;amp;(b2[i]&amp;lt;b2[j]))&lt;br /&gt;                   ans++;&lt;br /&gt;           }&lt;br /&gt;       }&lt;br /&gt;       b1.clear();&lt;br /&gt;       b2.clear();&lt;br /&gt;       fout&amp;lt;&amp;lt;"Case #"&amp;lt;&amp;lt;m&amp;lt;&amp;lt;": "&amp;lt;&amp;lt;ans&amp;lt;&amp;lt;"\n";&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;a href="http://code.google.com/codejam/contest/dashboard?c=619102#s=p1"&gt;Problem-2&lt;/a&gt; (Load Testing) was really hard to understand and so was problem-3. After the competition ended I found myself placed at 1,950th position and losing the match by 950 ranks. Here's my complete performance.. &lt;a href="http://www.go-hero.net/jam/10/name/vaibs"&gt;GCJ-2010&lt;/a&gt;.&lt;br /&gt;Khair, m happy but not satisfied. Will definitely improve the next time. Waiting for GCJ-2011 desperately..!! :)&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-894079909529828743?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/894079909529828743/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/05/google-code-jam-2010.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/894079909529828743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/894079909529828743'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/05/google-code-jam-2010.html' title='Google Code Jam - 2010'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-222974447988844657</id><published>2010-03-29T23:29:00.000-07:00</published><updated>2010-03-31T03:51:01.162-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gettingStarted'/><category scheme='http://www.blogger.com/atom/ns#' term='PC2'/><category scheme='http://www.blogger.com/atom/ns#' term='programming contest software'/><title type='text'>Getting started with Programming Contest Control (PC2)</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/__JLOqnlHtik/S7GeMbNRgEI/AAAAAAAAAPg/I7K_yncoCek/s1600/icpc-logo.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 140px; height: 87px;" src="http://2.bp.blogspot.com/__JLOqnlHtik/S7GeMbNRgEI/AAAAAAAAAPg/I7K_yncoCek/s320/icpc-logo.png" alt="" id="BLOGGER_PHOTO_ID_5454314560021430338" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After a grand success of JSSATEN techno-cult fest Zealicon '10, I wanted to redirect myself to blogging. So, here I m with another post in which I would like to share my experience with &lt;a href="http://www.ecs.csus.edu/pc2/"&gt;Programming Contest Control (PC2)&lt;/a&gt; software.&lt;br /&gt;&lt;br /&gt;PC2 is a dynamic, distributed real-time system designed to manage and control Programming Contests. PC2 operates using a client-server architecture. Logging into a client using one of several different types of PC2 accounts (Administrator, Team, Judge, or Scoreboard) enables that client to perform common contest operations associated with the account type, such as contest configuration and control (Administrator), submitting contestant programs (Team), judging submissions (Judge), and maintaining the current contest standings (Scoreboard).&lt;br /&gt;&lt;br /&gt;Here are the steps to begin with PC2 software:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Install Java (version 1.3.1 or greater).&lt;/li&gt;&lt;li&gt;Donwnload PC2 software from &lt;a href="http://www.ecs.csus.edu/pc2/secret.1208.html"&gt;here&lt;/a&gt; ( I prefer version 8 ).&lt;/li&gt;&lt;li&gt;Edit the pc2v8.ini file to point servers and clients to the server IP:port and put the modified .ini file on every server and client machine.&lt;/li&gt;&lt;li&gt;Start a PC2 server by running “pc2server.bat” and answer the prompted question as "no".&lt;/li&gt;&lt;li&gt;Start a PC2 Admin client by running “pc2admin.bat” and login using the name “root” and password “root”.&lt;/li&gt;&lt;li&gt;Do not forget to change the username and login after that.&lt;/li&gt;&lt;li&gt;Configure the Admin.&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Admin:&lt;/span&gt; Generate the number of teams, judges, admins, scoreboards you need.&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Admin:&lt;/span&gt; Add the problems from the problem tab.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Admin:&lt;/span&gt; Define the languages allowed in your competition from the language tab.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Admin:&lt;/span&gt; Configure the clock from the Time/Reset tab. You can start and stop the contest from this tab.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Start all PC2 Judge clients by running “pc2judge.bat” and login ( for judge1 ) using the name “judge1” and password “judge1” and hence for other judges.&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Judge:&lt;/span&gt; Judge receives all the source codes submitted by the teams and has to judge them right or wrong.&lt;/li&gt;&lt;li&gt;Start all PC2 Team client running “pc2team.bat” and login ( for team1 ) using the name “team1” and password “team1” and hence for other teams.&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Team:&lt;/span&gt; The teams can send their source code by browsing it, selecting the problem and selecting the language.&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Team:&lt;/span&gt; Teams get prompted whenever a decision is made about their source code and the scoreboard automatically updates as a team succesfully submits a problem.&lt;/li&gt;&lt;/ul&gt;So, here is the minimal use of PC2 software. For running a multisite contest or automated compilation of source code please refer the its &lt;a href="http://www.ecs.csus.edu/pc2/pc2docs.html"&gt;documentation&lt;/a&gt;.&lt;br /&gt;Happy coding..!!&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-222974447988844657?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/222974447988844657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/03/getting-started-with-programming.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/222974447988844657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/222974447988844657'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/03/getting-started-with-programming.html' title='Getting started with Programming Contest Control (PC2)'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/__JLOqnlHtik/S7GeMbNRgEI/AAAAAAAAAPg/I7K_yncoCek/s72-c/icpc-logo.png' height='72' width='72'/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-5993515101299050482</id><published>2010-03-15T00:04:00.000-07:00</published><updated>2010-05-17T01:28:27.086-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='zealicon'/><category scheme='http://www.blogger.com/atom/ns#' term='online event'/><category scheme='http://www.blogger.com/atom/ns#' term='algothematics'/><title type='text'>Algothematics.. All the Mathematics you missed</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/__JLOqnlHtik/S53vPgwgfZI/AAAAAAAAAPQ/37BIj3hIY1s/s1600-h/algothematics.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 226px;" src="http://2.bp.blogspot.com/__JLOqnlHtik/S53vPgwgfZI/AAAAAAAAAPQ/37BIj3hIY1s/s320/algothematics.jpg" alt="" id="BLOGGER_PHOTO_ID_5448774173958634898" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;Algothematics is a new event being introduced in &lt;a href="http://zealicon.org/"&gt;Zealicon '10&lt;/a&gt; (annual TechFest of JSS Academy of Technical Education, Noida). The event will be conducted online. All programmers across the world are, hence, invited.&lt;br /&gt;&lt;br /&gt;The event comprises of 15 levels. Each level has an ad-hoc mathematical problem which can either be solved manually (using pen and paper) or by conceiving certain algorithm. The submission requires only the answer to the question. Submission of source-code is not required.&lt;br /&gt;&lt;br /&gt;Other tools can also be used for solving the problems. Spreadsheet, PARI-GP, MATLAB are among them. Besides all these we always have &lt;span style="color: rgb(51, 51, 255);"&gt;G&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;O&lt;/span&gt;&lt;span style="color: rgb(255, 255, 51);"&gt;O&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;G&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;L&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;E&lt;/span&gt; with us... :)&lt;br /&gt;&lt;br /&gt;Besides all this, &lt;a href="http://zealicon.org/forum/viewforum.php?f=1"&gt;Zealicon forum&lt;/a&gt; will contain an "Algothematics" thread under "online events" where all sorts of problems and their hints will be discussed. No questions extraneous to the event will be entertained.&lt;br /&gt;LeaderBoard will be available at the home page itself, so that you can constantly check your position among others.&lt;br /&gt;&lt;br /&gt;Please do not ruin the basic purpose of event by any hacking stuff. Those not conforming to the rules and regulations will be banned without prior information. Decision of &lt;a href="http://zealicon.org/events/algothematics/#5"&gt;Algothematics Team&lt;/a&gt; will be the last.&lt;br /&gt;&lt;br /&gt;First two teams reaching the final level will be adjudged victorious..&lt;br /&gt;&lt;br /&gt;So pull up your socks, hone your programming skills.. &lt;a href="http://algothematics.zealicon.org/"&gt;Algothematics&lt;/a&gt; is about to begin..!!! (17th March, 00:00)&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-5993515101299050482?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/5993515101299050482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/03/algothematics-all-mathematics-you.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/5993515101299050482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/5993515101299050482'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/03/algothematics-all-mathematics-you.html' title='Algothematics.. All the Mathematics you missed'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/__JLOqnlHtik/S53vPgwgfZI/AAAAAAAAAPQ/37BIj3hIY1s/s72-c/algothematics.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-796770188512659958</id><published>2010-02-19T04:20:00.000-08:00</published><updated>2010-02-19T04:23:13.673-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='c'/><title type='text'>cmath v/s math.h</title><content type='html'>Here's a problem with pow() function in cmath and math.h:&lt;br /&gt;&lt;br /&gt;With gcc set up, math.h just contains the the usual C function pow(double, double) - so all the functions work because with pow(int, int) both ints get promoted to double by compiler and all is OK.&lt;br /&gt;cmath in more than a wrapper for math.h. First it includes math.h and then undefines a whole lot of stuff that math.h defined, and substitutes the c++ versions.&lt;br /&gt;This includes the pow function declaration.&lt;br /&gt;As the c++ overloaded functions (same as any other c++ compiler), you will get the ambiguity problem - when using pow(int, int).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;P.S. - The ambiguity occurs with pow(int, int) because integers can be promoted to floats or doubles, which means that pow(int, int) can fit the so overloaded c++ pow function - so the compiler gets confused.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-796770188512659958?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/796770188512659958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/02/cmath-vs-mathh.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/796770188512659958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/796770188512659958'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/02/cmath-vs-mathh.html' title='cmath v/s math.h'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-6912894671007466405</id><published>2010-02-11T08:55:00.000-08:00</published><updated>2010-02-11T09:02:43.522-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='websites'/><title type='text'>How to make a good Website..</title><content type='html'>Answering the question "how" to make a Website is an easy task for many of us but the question which really puzzles us is "what" makes a good Website. We all visit many sites daily while surfing the net but there are a very few of them which leave an impression in our mind. Many sites are technically fine but fail on aesthetic grounds.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;What makes a good WEBSITE:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Content:&lt;/span&gt;&lt;br /&gt;The most important element of a website is its content. An interesting, informative and dynamic (updated frequently) content makes people visit the site again and again. The flashy colours or animated images look good at first but they never compell us to visit a site again and again. Only good content can do that.&lt;br /&gt;Web is primarily a visual medium and its quite cumbersome to read text screen after screen. Try to keep the content to the point. Never elaborate.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Visuals:&lt;/span&gt;&lt;br /&gt;Try not to Bold and Italicise the text too much, it gives an ameturish touch to your website. Sometimes underlined text get users confused with a hyperlink. Try avoiding it too. Make sure that the font size is even throughout. Do not wildly vary the size unless required.&lt;br /&gt;Leave lots of blank spaces. Text on computer screens is hard to read, so don't cram up your text. Start lots of new paragraphs, and leave plenty of spaces between words and objects. Headings or horizontal rules are a good way to do this.&lt;br /&gt;Do not use flashy colours as explained above. Try to select a good and readable combination of colour scheme. White text on black background may look classy but its difficult to read specially when text size is small.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Technicalities:&lt;/span&gt;&lt;br /&gt;There are many things that make your web page look a bit different as what you expected:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Different browsers may show your web page differently. Try using a javascript available on net that kills this variation.&lt;/li&gt;&lt;li&gt;Sometimes web page view gets distorted on lower resolutions. Give a message on your website as "Website is best viewed in 1024X768" or anything like that.&lt;/li&gt;&lt;li&gt;The person viewing the web page may have certain settings different from yours.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Some tips:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;To prevent your sites to look weird on text-only browsers you can add 'ALT' tags to ALL your images. If there is no alternative text that makes sense, use alt="" - this will help text-only browsers more than you will believe.&lt;/li&gt;&lt;li&gt;You can add a site search to your site. This will allow users to search your entire site easily and quickly.&lt;/li&gt;&lt;li&gt;Make sure that wherever your visitor is in your site, they can get to any other area. Also make sure they know where they are!!&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;As earlier said making a website is not a difficult task, it is designing and making people visit it again and again that makes it difficult. You need to make your website pretty different from all the other billions, floating on the internet.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-6912894671007466405?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/6912894671007466405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/02/how-to-make-good-website.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/6912894671007466405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/6912894671007466405'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/02/how-to-make-good-website.html' title='How to make a good Website..'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-4320525299139340781</id><published>2010-02-04T02:41:00.000-08:00</published><updated>2010-04-27T00:22:24.948-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='algorithms'/><category scheme='http://www.blogger.com/atom/ns#' term='c'/><title type='text'>My way of writing a Quine</title><content type='html'>Here I m presenting a Quine written by me few days before. A Quine is a program that prints its own source code. In my source code user has an option of printing the source code n number of times.&lt;br /&gt;&lt;br /&gt;Here is the code written in c:&lt;br /&gt;&lt;br /&gt;&lt;pre style="border: 1px dashed rgb(153, 153, 153); padding: 5px; overflow: auto; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; color: rgb(0, 0, 0); background-color: rgb(238, 238, 238); font-size: 12px; line-height: 14px; width: 100%;"&gt;&lt;code&gt;#include &amp;lt; stdio.h &amp;gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt; int n;&lt;br /&gt; char c;&lt;br /&gt; FILE *f;&lt;br /&gt; f=fopen(__FILE__,"r");&lt;br /&gt; scanf("%d",&amp;amp;n);&lt;br /&gt; while(n--)&lt;br /&gt; {&lt;br /&gt;  while((c=getc(f))!=EOF)&lt;br /&gt;  putchar(c);&lt;br /&gt;  fseek(f,0,0);&lt;br /&gt; }&lt;br /&gt; return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Here is the code written in c++:&lt;br /&gt;&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;#include &amp;lt;fstream&amp;gt;&lt;br /&gt;#include&amp;lt;iostream&amp;gt;&lt;br /&gt;#include &amp;lt;cstdio&amp;gt;&lt;br /&gt;using namespace std;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;    int n;&lt;br /&gt;    string a;&lt;br /&gt;    cin&amp;gt;&amp;gt;n;&lt;br /&gt;    while(n--)&lt;br /&gt;    {&lt;br /&gt;        ifstream fin(__FILE__);&lt;br /&gt;        while(!fin.eof())&lt;br /&gt;        {&lt;br /&gt;             getline(fin,a,'\n');&lt;br /&gt;             cout&amp;lt;&amp;lt;a&amp;gt;&amp;lt;&amp;lt;&amp;quot;\n&amp;quot;;           &lt;br /&gt;                }      &lt;br /&gt;           }      &lt;br /&gt;     return 0;&lt;br /&gt; }&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;  &lt;div style="text-align: center;"&gt;&lt;a&gt;* * * * *&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-4320525299139340781?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/4320525299139340781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/02/my-way-of-writing-quine.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/4320525299139340781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/4320525299139340781'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/02/my-way-of-writing-quine.html' title='My way of writing a Quine'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-9172541909656784078</id><published>2010-01-27T07:16:00.000-08:00</published><updated>2010-01-28T01:50:13.695-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web server'/><category scheme='http://www.blogger.com/atom/ns#' term='IIS'/><title type='text'>Configuring IIS Web Server</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/__JLOqnlHtik/S2BbCtwmlvI/AAAAAAAAAOI/WCVq2GvfTIQ/s1600-h/iis7.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 230px;" src="http://3.bp.blogspot.com/__JLOqnlHtik/S2BbCtwmlvI/AAAAAAAAAOI/WCVq2GvfTIQ/s320/iis7.png" alt="" id="BLOGGER_PHOTO_ID_5431441252810135282" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The ASP .NET pages can also be hosted through apache but it requires a hell lot of configurations and changes. An alternate version is IIS web server that comes already installed with your windows OS.&lt;br /&gt;Vista OS has an already installed IIS web sever. One just needs to turn the feature on, through control panel. In XP OS you need to install it through XP CD.&lt;br /&gt;&lt;br /&gt;Never try to configure IIS on Vista Basic you will land no where in the end. The OS is not provided with the complete package. ISAPI filters cannot be installed correctly on Vista Basic. Certain features of ISAPI filters need to be checked while hosting the website. The safest option is to configure the server on XP.&lt;br /&gt;&lt;br /&gt;The steps for configuring it are:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Turn the IIS feature on through control panel.&lt;/li&gt;&lt;li&gt;Check installation by typing 'http://localhost:80/' in your browser. IIS page will appear.&lt;/li&gt;&lt;li&gt;Goto run and type inetmgr. This makes a window pop up. Window is that of IIS Manager.&lt;/li&gt;&lt;li&gt;The next step would be to create a virtual directory for an existing physical directory. For this you need to expand the Web Sites item in the IIS tree, right-click the Default WebSite item and choose New -&gt; Virtual Directory from the menu.&lt;/li&gt;&lt;li&gt;Then comes the virtual directory creation wizard. The first step in the wizard is to choose an alias. The alias is the name, a user will use, in his URL to access the files in this virtual directory.&lt;/li&gt;&lt;li&gt;The next step in the wizard is to provide an existing physical directory to which the virtual directory will point to. So, this physical directory will be exposed as a virtual directory through its alias. &lt;/li&gt;&lt;li&gt;The final step in this wizard is to choose your permissions for the virtual directory. Usually, to host an ASP.NET application, read and execute permissions are enough. Of course, in order to fulfill your needs you can choose other permissions too.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-9172541909656784078?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/9172541909656784078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/01/configuring-iis-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/9172541909656784078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/9172541909656784078'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/01/configuring-iis-server.html' title='Configuring IIS Web Server'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/__JLOqnlHtik/S2BbCtwmlvI/AAAAAAAAAOI/WCVq2GvfTIQ/s72-c/iis7.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-1115562992522601334</id><published>2010-01-21T07:02:00.000-08:00</published><updated>2010-01-22T05:18:44.440-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SPOJ'/><category scheme='http://www.blogger.com/atom/ns#' term='algorithms'/><category scheme='http://www.blogger.com/atom/ns#' term='programming languages'/><title type='text'>My submissions to SPOJ problem- TEST</title><content type='html'>My interest lies in programming languages. Actually, I have a bad habit of trying every type of weird thing and this time I came up with the idea of trying a simple problem in every possible programming language I know. I tried to solve the first problem of SPOJ named &lt;a href="http://www.spoj.pl/problems/TEST"&gt;Test&lt;/a&gt;. Here are my codes:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;&lt;u&gt;C:&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#include &amp;lt stdio.h &amp;gt&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt; int n;&lt;br /&gt; scanf("%d",&amp;amp;n);&lt;br /&gt; while (n!= 42) {&lt;br /&gt;   printf(""%d", n);&lt;br /&gt;   scanf("%d",&amp;amp;n);&lt;br /&gt;   }&lt;br /&gt; return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;&lt;u&gt;C++:&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#include &amp;lt iostream &amp;gt&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt; int n;&lt;br /&gt; cin&gt;&gt;n;&lt;br /&gt; while (n!= 42) {&lt;br /&gt;      cout&lt;&lt;n; cin=""&gt;&gt;n;&lt;br /&gt;   }&lt;br /&gt; return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;&lt;u&gt;C#:&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;using System;&lt;br /&gt;public class Test&lt;br /&gt;{&lt;br /&gt; public static void Main()&lt;br /&gt; {&lt;br /&gt;      int n;&lt;br /&gt;      while ((n = int.Parse(Console.ReadLine()))!=42)&lt;br /&gt;            Console.WriteLine(n);&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;&lt;u&gt;Java:&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;public class Main&lt;br /&gt;{&lt;br /&gt; public static void main (String[] args) throws java.lang.Exception&lt;br /&gt; {&lt;br /&gt;   java.io.BufferedReader r = new java.io.BufferedReader (new java.io.InputStreamReader (System.in));&lt;br /&gt;   String s;&lt;br /&gt;   while (!(s=r.readLine()).startsWith("42"))&lt;br /&gt;     System.out.println(s);&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;&lt;u&gt;Python:&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;n = input()&lt;br /&gt;&amp;nbsp while n != 42:&lt;br /&gt;&amp;nbsp print n&lt;br /&gt;&amp;nbsp n = input()&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;&lt;u&gt;PHP:&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt; ? php while(1) {   fscanf(STDIN,"%d",$n);   if ($n == 42) break;   print "$n\n"; } ? &gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;&lt;u&gt;BrainF*ck:&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&gt;+[&gt;&gt;,----------[&gt;,----------]+++++[&lt;--------&gt;-]&lt;[&gt;&gt;-&lt;]&gt;+[&lt;br /&gt;-&lt;+++++++[&lt;------&gt;-]&lt;[&gt;&gt;-&lt;]&gt;+[&lt;br /&gt;-&lt;&lt;[&gt;&gt;-&lt;]&gt;+[&lt;&lt;-&gt;&gt;-&gt;]&gt;&lt;br /&gt;]&lt;+++++++[&lt;++++++&gt;-]&gt;&gt;&lt;br /&gt;]&lt;++++++++[&lt;+++++&gt;-]&lt; [&lt;]&lt;[&gt;&gt;[++++++++++.&gt;]++++++++++.[[-]&lt;]]&lt;]  &lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;/n;&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-1115562992522601334?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/1115562992522601334/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/01/my-submissions-to-spoj-problem-test.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/1115562992522601334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/1115562992522601334'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/01/my-submissions-to-spoj-problem-test.html' title='My submissions to SPOJ problem- TEST'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-8609533917759592064</id><published>2010-01-15T01:16:00.000-08:00</published><updated>2010-01-15T02:07:53.043-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='programming languages'/><title type='text'>Introduction to various programming languages</title><content type='html'>Hey folks, I recently researched about various Programming Languages. Here I m going to discuss certain attributes of each language.&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;Basic&lt;/span&gt;&lt;br /&gt;   Year Introduced:  1964&lt;br /&gt;   Paradigm:  Imperative, Procedural&lt;br /&gt;   Standardization:  Yes, ANSI, ISO&lt;br /&gt;   Type Strength: Varies by dialect&lt;br /&gt;   Intended Use:  Application, Education&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;C&lt;/span&gt;&lt;br /&gt;   Year Introduced: 1972&lt;br /&gt;   Paradigm:  Imperative&lt;br /&gt;   Standardization:  Yes, ANSI C89, ISO C90/C99&lt;br /&gt;   Type Strength: Weak&lt;br /&gt;   Intended Use:  System&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;C++&lt;/span&gt;&lt;br /&gt;   Year Introduced:  1979&lt;br /&gt;   Paradigm:  Imperative, Procedural, Object-oriented, Generic&lt;br /&gt;   Standardization:  Yes, ISO&lt;br /&gt;   Type Strength: Strong&lt;br /&gt;   Intended Use:  Application, System&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;C#&lt;/span&gt;&lt;br /&gt;   Year Introduced:  2000&lt;br /&gt;   Paradigm:  Imperative, Object-oriented, Functional, Generic, Reflective&lt;br /&gt;   Standardization:  Yes, ECMA, ISO&lt;br /&gt;   Type Strength: Strong&lt;br /&gt;   Intended Use:  Application, Web&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Haskell&lt;/span&gt;&lt;br /&gt;   Year Introduced:  1990&lt;br /&gt;   Paradigm:  Functional, Generic, Lazy evaluation&lt;br /&gt;   Standardization:  Yes, Haskell 98&lt;br /&gt;   Type Strength: Strong&lt;br /&gt;   Intended Use:  Application&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Java&lt;/span&gt;&lt;br /&gt;   Year Introduced:  1995&lt;br /&gt;   Paradigm:  Imperative, Object-oriented, Generic, Reflective&lt;br /&gt;   Standardization:  No&lt;br /&gt;   Type Strength: Strong&lt;br /&gt;   Intended Use:  Application, Web&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Perl&lt;/span&gt;&lt;br /&gt;   Year Introduced:  1987&lt;br /&gt;   Paradigm:  Imperative, Procedural, Reflective, Functional, Object-oriented, Generic&lt;br /&gt;   Standardization:  No&lt;br /&gt;   Type Strength: Weak&lt;br /&gt;   Intended Use:  Application, Text processing, Scripting, Web&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;PHP&lt;/span&gt;&lt;br /&gt;   Year Introduced:  1995&lt;br /&gt;   Paradigm:  Imperative, Procedural, Object-oriented, Reflective&lt;br /&gt;   Standardization:  No&lt;br /&gt;   Type Strength: Weak&lt;br /&gt;   Intended Use:  Web, Server-side&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Python&lt;/span&gt;&lt;br /&gt;   Year Introduced:  1989&lt;br /&gt;   Paradigm:  Imperative, Object-oriented, Functional, Aspect-oriented, Reflective&lt;br /&gt;   Standardization:  No&lt;br /&gt;   Type Strength: Strong&lt;br /&gt;   Intended Use:  Application, Scripting, Web&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Scala&lt;/span&gt;&lt;br /&gt;   Year Introduced:  2003&lt;br /&gt;   Paradigm:  Object-oriented, Functional, Generic, Lazy evaluation, Imperative&lt;br /&gt;   Standardization:  No&lt;br /&gt;   Type Strength: Strong&lt;br /&gt;   Intended Use:  Application, distributed computing&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-8609533917759592064?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/8609533917759592064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/01/introduction-to-various-programming.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/8609533917759592064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/8609533917759592064'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/01/introduction-to-various-programming.html' title='Introduction to various programming languages'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-9034209263152701013</id><published>2010-01-06T01:54:00.000-08:00</published><updated>2010-01-06T02:10:57.683-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gettingStarted'/><category scheme='http://www.blogger.com/atom/ns#' term='blogs'/><title type='text'>Why, what n how to Blog..</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/__JLOqnlHtik/S0RhT69v4ZI/AAAAAAAAANI/yXbrA1szPkM/s1600-h/the-computer-demands-a-blog.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 192px;" src="http://1.bp.blogspot.com/__JLOqnlHtik/S0RhT69v4ZI/AAAAAAAAANI/yXbrA1szPkM/s320/the-computer-demands-a-blog.gif" alt="" id="BLOGGER_PHOTO_ID_5423566846134575506" border="0" /&gt;&lt;/a&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Why to Blog?&lt;/span&gt;&lt;br /&gt;My Blogging habit commenced from January 2009 and I still love it a lot..!! I have a second blog running parallely. Here is its &lt;a href="http://www.vaibhavsilvester.blogspot.com/"&gt;URL&lt;/a&gt;.&lt;br /&gt;Blog is something that displays your thoughts to the outer world. Whatever is in your mind, you can deploy that on your blog, as its all yours. Many use blog for helping others, many use it for storing memoirs, many use them for technical discussions and many for fun and money. If you are addicted to writing.. blogging is your domain for sure.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;What to Blog?&lt;/span&gt;&lt;br /&gt;Its Important to know where your interest spans. A personal blog may contain all the happenings in your life and pictures to display them. A technical blog may contain certain useful information which you found out recently or which is the latest trend. A news blog may contain all recent updates about world, movies, sports, music etc. The thing that matters is your interest.&lt;br /&gt;The second most important aspect of blogging is the content of your posts. The content must be precise, interesting and informative. For attracting more traffic to your blog you need to get a nice title to your posts. These titles get Googled frequently and increase the page rank of your post.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;How to Blog?&lt;/span&gt;&lt;br /&gt;There are many sites that offer you space to make your own blog. Some famous ones are Blogger, Wordpress, Tumblr, Procetours. I chose Blogger just because I was not having any idea about the others at that time!! I dont want to shift my blog now because then I will have to compromise with my page rank. Certain pre-built tools and gadgets are provided to the bloggers free from these sites. Javascripts may be used to build own tools.&lt;br /&gt;Now, here are some tips from my side that can help bloggers in monitoring their blog and see who visits them.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.google.com/analytics/"&gt;&lt;span style="font-weight: bold;"&gt;Google Analytics:&lt;/span&gt;&lt;/a&gt; Its Google again :).. The analytics gives you a huge amount of information about the visitors of the blog viz the page they visit, amount of time they spend, the area from where they belong, the site from where they refer, how often they visit, even the operating system they use and the browser too..!! :p Visit Google Analytics, register yourself and your blog and enjoy tracing back your visitors. It will ask to add certain Javascrpit onto your home page and some other operations which can easily be done.&lt;br /&gt;&lt;br /&gt;&lt;a style="font-weight: bold;" href="http://feedjit.com/join/"&gt;Feedjit:&lt;/a&gt; FeedJit is a cool tool. It displays the visitor on your blog in a real time basis. The visitors' location will be displayed on the blog itself at whichever corner you wish to place the tool. On clicking the real time display, it shows every visitor location, the sites from where they referred your blog and the keyword they typed in if they Googled your blog and also to which page did they exit. Go for it.. its free.. at least for now..!! :p&lt;br /&gt;&lt;br /&gt;&lt;a href="https://www.google.com/accounts/ServiceLogin?service=feedburner"&gt;&lt;span style="font-weight: bold;"&gt;Google Feedburner:&lt;/span&gt;&lt;/a&gt; Recently added to Google. It allows you to generate feeds and sends them to each of your blog's subscriber. RSS feeds or ATOM, anyone can be chosen to begin with.&lt;br /&gt;&lt;br /&gt;If you are interested in money making and have a decent regular traffic, you can add &lt;a style="font-weight: bold;" href="https://www.google.com/adsense/login/en_US/"&gt;Google Adsense&lt;/a&gt; onto your blog. Google provides you with some advertisements of other companies which when clicked by a visitor lets you make money. The advertisements are mostly related to the content of your blog.&lt;br /&gt;&lt;br /&gt;All these may help you in forming and maintaining your blog. If you have more information.. comments are surely invited..!!&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;HAPPY BLOGGING..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-9034209263152701013?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/9034209263152701013/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/01/why-what-n-how-to-blog.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/9034209263152701013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/9034209263152701013'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2010/01/why-what-n-how-to-blog.html' title='Why, what n how to Blog..'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/__JLOqnlHtik/S0RhT69v4ZI/AAAAAAAAANI/yXbrA1szPkM/s72-c/the-computer-demands-a-blog.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-3095497368806937883</id><published>2009-12-15T23:46:00.000-08:00</published><updated>2010-01-06T02:25:28.309-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SPOJ'/><category scheme='http://www.blogger.com/atom/ns#' term='algorithms'/><title type='text'>Some more problems of SPOJ...</title><content type='html'>I recently breached into the top 1200 &lt;a href="http://spoj.pl/users/vaibhav_pandey"&gt;ranks&lt;/a&gt; in the world, but sad news is, soon I'll be thrown out too. The points keep on decreasing on a regular basis. Never mind this works as an incentive to work on more and more problems. &lt;span style="color: rgb(255, 0, 0);"&gt;:)&lt;/span&gt;&lt;br /&gt;So, m writing this post for some more problems of SPOJ. The problems I m going to discuss are of an average level.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://spoj.pl/problems/BISHOPS"&gt;&lt;span style="font-weight: bold;"&gt;BISHOPS&lt;/span&gt;&lt;/a&gt;: Its an easy problem, if we try verbally. The answer is (2*n-2) i.e. equal to the number of diagonals. But the difficulty lies in the range of the inputs. N&lt;=10^100..!! OMG!!.. &lt;span style="color: rgb(255, 0, 0);"&gt;:)&lt;/span&gt;.. Try strings..&lt;br /&gt;&lt;br /&gt;&lt;a style="font-weight: bold;" href="http://spoj.pl/problems/MINCOUNT"&gt;MINCOUNT&lt;/a&gt;: Actually what I did.. I tried it out for certain test cases and found that the answer is.. (n*(n+1)/2)/3.. i.e. the total number of coins in the triangle divided by 3. But why its so.. its still unanswered for me.. kindly post the explanation if you get one..!! &lt;span style="color: rgb(255, 0, 0);"&gt;:)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="font-weight: bold;" href="http://spoj.pl/problems/HUBULLU"&gt;HUBULLU&lt;/a&gt;: Same mincount type problem here too.. seeing the discussion in the forum I got some hints that who so ever plays first wins.. So, it became a very very easy question for me to crack but why it happens is yet not understood by me..&lt;br /&gt;&lt;br /&gt;&lt;a href="http://spoj.pl/problems/TRICOUNT"&gt;&lt;span style="font-weight: bold;"&gt;TRICOUNT&lt;/span&gt;&lt;/a&gt;: Its another mathematics problem.. try it for sometime with all yours geometrical anlysis and at one time you will definitely come out with a solution that is much like (t*(t+2)*(2*t+1))/8.. where t is the level of triangle. Try it now yourself..!!&lt;br /&gt;&lt;br /&gt;&lt;a href="http://spoj.pl/problems/SAMER08F"&gt;&lt;span style="font-weight: bold;"&gt;SAMER08F&lt;/span&gt;&lt;/a&gt;: Another age old problem of how many squares are there in a given bunch of squares?? Answer lies in the sum all squared numbers till the number of squares in each side of the grid i.e. if N=8 then answer= (1*1) + (2*2) + ... + (8*8).&lt;br /&gt;&lt;br /&gt;Seeing my last three posts of SPOJ I think now its easy for any newbie to get started. So, no more discussing algorithms of SPOJ problems from my side. Keep practicing and who knows one day you beat &lt;a href="https://www.spoj.pl/users/john_jones/"&gt;[Trichromatic] XilinX&lt;/a&gt;..!! :p&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-3095497368806937883?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/3095497368806937883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/12/some-more-problems-of-spoj.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/3095497368806937883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/3095497368806937883'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/12/some-more-problems-of-spoj.html' title='Some more problems of SPOJ...'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-3552094506651762424</id><published>2009-11-21T06:37:00.000-08:00</published><updated>2010-01-06T02:26:12.898-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SPOJ'/><category scheme='http://www.blogger.com/atom/ns#' term='algorithms'/><title type='text'>SPOJ: Some very easy problems</title><content type='html'>Its been a month since I have started coding in &lt;a href="http://www.spoj.pl/"&gt;SPOJ&lt;/a&gt;. There are over 5000 &lt;a href="http://www.spoj.pl/problems"&gt;problems&lt;/a&gt; present there. Its really gets very tough when one tries to get some easy problems from that lot. So, I dedicate this post to beginners. Go for the below mentioned problems.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Some very easy classical problems:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="font-weight: bold;" href="https://www.spoj.pl/problems/TEST/"&gt;TEST&lt;/a&gt;- This is the first problem I solved in SPOJ. I recommend the same for you. It gives a brief introduction of the whole environment. What you need to do is to accept and print the input by the user until you come across 42. The easiest problem at SPOJ and a confidence booster to begin with..!! &lt;span style="color: rgb(255, 0, 0);"&gt;;)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="font-weight: bold;" href="https://www.spoj.pl/problems/ADDREV/"&gt;ADDREV&lt;/a&gt;&lt;span style="font-weight: bold;"&gt;- &lt;/span&gt;Take two numbers as input. Reverse both. Add the reversed number. Reverse again. Simple..!! The thing you need to keep in mind is that you have to provide the number of test cases first. While taking the inputs you can print the result too. You need not store them and print later.&lt;br /&gt;&lt;br /&gt;&lt;a style="font-weight: bold;" href="https://www.spoj.pl/problems/FASHION/"&gt;FASHION&lt;/a&gt;- Quite big explanation of the problem (a bit interesting too &lt;span style="color: rgb(255, 0, 0);"&gt;;)&lt;/span&gt; ). The only thing you need to keep in mind is that you have to sort the degree of hotness of men and women and then multiply and add them up. If you do not sort them, it will give a WA.&lt;br /&gt;&lt;br /&gt;&lt;a style="font-weight: bold;" href="https://www.spoj.pl/problems/MIRRORED/"&gt;MIRRORED&lt;/a&gt;- Print "Mirrored pair" wherever you confront "bd" or "db" or "pq" or "qp", otherwise print "Ordinary pair". Don't forget to print "Ready" in the beginning. You do not have to take the test cases as input here. Just end the input when you confront two spaces. I got an  AC at very first attempt..!! Hope the same for you.. &lt;span style="color: rgb(255, 0, 0);"&gt;:)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="font-weight: bold;" href="https://www.spoj.pl/problems/NSTEPS/"&gt;NSTEPS&lt;/a&gt;- Analize the graph properly. Whenever x and y co-ordinates are even the corresponding output is (x+y) for input (x=y) and (x=y-2). When they are odd the corresponding ouput is (x+y-1) for input (x=y) and (y=x-2). You can also do the problem with a different approach too. You can form a series for the numbers, and hence, generate the output.&lt;br /&gt;&lt;br /&gt;&lt;a style="font-weight: bold;" href="https://www.spoj.pl/problems/OFORTUNE/"&gt;OFORTUNE&lt;/a&gt;- Common.. don't get astonished by the enormous length of the question. Try tackling the problem. It just needs six inputs and a simple interest and compound interest formula implementation thats it.. Try it.. You will gain a hell lot of points..!!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Some very easy challenge problems:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://www.spoj.pl/problems/SIZECON/"&gt;&lt;span style="font-weight: bold;"&gt;SIZECON&lt;/span&gt;&lt;/a&gt;- The difficulty doesn't lie in the problem statement. The difficulty lies in the choice of programming language. I managed to do it in 96 characters. Best solution in c++ has 70 characters in it. Perl language wins with just 6 characters..!!&lt;br /&gt;&lt;br /&gt;&lt;a style="font-weight: bold;" href="https://www.spoj.pl/problems/BFWRITE/"&gt;BFWRITE&lt;/a&gt;- I have already written a post about this problem. Try learning Brainf_ck language and solve this problem too. Here's the link to my &lt;a href="http://vaibhavtechno.blogspot.com/2009/11/my-experience-with-brainfck-programming.html"&gt;post&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;More easy problems are being searched. Kindly mention some in comments if you confront one.. Here's my SPOJ handle.. &lt;a href="https://www.spoj.pl/users/vaibhav_pandey/"&gt;vaibhav_pandey&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-3552094506651762424?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/3552094506651762424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/11/spoj-some-very-easy-problems.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/3552094506651762424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/3552094506651762424'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/11/spoj-some-very-easy-problems.html' title='SPOJ: Some very easy problems'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-3634585630148039263</id><published>2009-11-14T22:58:00.000-08:00</published><updated>2010-01-06T02:13:56.154-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gettingStarted'/><category scheme='http://www.blogger.com/atom/ns#' term='project euler'/><title type='text'>Getting started with Project Euler</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/__JLOqnlHtik/Sv-oAcAMX7I/AAAAAAAAAMU/WvWGfzY2gC8/s1600-h/euler_main-258x300.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 258px; height: 300px;" src="http://3.bp.blogspot.com/__JLOqnlHtik/Sv-oAcAMX7I/AAAAAAAAAMU/WvWGfzY2gC8/s320/euler_main-258x300.jpg" alt="" id="BLOGGER_PHOTO_ID_5404222803338354610" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;Hello folks.. After getting started with SPOJ and TOPCODER, lets get started with another fine programming competition which is &lt;a href="http://www.projecteuler.net/"&gt;Project Euler&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The first question which originates is.. why Project Euler??&lt;br /&gt;&lt;br /&gt;My answer.. why not?? If you are interested in programming.. make yourselves interested in mathematical shortcuts and logics for solving problems too. Project Euler is a site that provides you problems that bind you to explore some unexplored areas of mathematics. Now, lets get started..&lt;br /&gt;&lt;br /&gt;Steps:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Get &lt;a href="http://projecteuler.net/index.php?section=register"&gt;registered&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;See the problems from problems tag. There are more than 260 problems at present.&lt;/li&gt;&lt;li&gt;Solving problems requires you either to build a source code that computes the asked value or to pick up pen and paper and start solving. My advice.. prefer the earlier one..!! &lt;span style="color: rgb(255, 0, 0);"&gt;:)&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Your profile consists of the number of problems you have solved. Your ranking is based on levels. If you have successfully solved 25 questions you qualify to the level 1 and so on and so forth. On solving a problem its thread gets unlocked and you can check solutions of others in the languages they preferred. Thus, you can compare your code with others.&lt;br /&gt;&lt;br /&gt;Your profile gets dissolved if no activity happens in 90 days of time. This happens if you are 0, 1 or 2 level programmer. Level 3 and level 4 programmers are granted immortality, thus, here lies the advantage of being superior.. &lt;span style="color: rgb(255, 0, 0);"&gt;8)&lt;/span&gt;&lt;br /&gt;So, get started with Project Euler and hone your programming skills..&lt;br /&gt;&lt;br /&gt;To see my profile, first register to the site and then type the URL: &lt;a href="http://projecteuler.net/index.php?section=profile&amp;amp;profile=vaibhav_pandey"&gt;http://projecteuler.net/index.php?section=profile&amp;amp;profile=vaibhav_pandey &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-3634585630148039263?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/3634585630148039263/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/11/getting-started-with-project-euler_14.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/3634585630148039263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/3634585630148039263'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/11/getting-started-with-project-euler_14.html' title='Getting started with Project Euler'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/__JLOqnlHtik/Sv-oAcAMX7I/AAAAAAAAAMU/WvWGfzY2gC8/s72-c/euler_main-258x300.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-675154509718244516</id><published>2009-11-05T09:34:00.000-08:00</published><updated>2009-11-05T11:37:30.364-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='programming languages'/><title type='text'>My experience with BrainF_ck Programming Language</title><content type='html'>Hi folks.. Last few days I worked a bit on BrainF_ck language. A nice language that may be used for encoding sort of stuff. What we code in it.. it might happen that we ourselves forget about it, such is the level of complexity of the language!!&lt;br /&gt;The brilliant factor about the language is that it is just made of eight symbols in total..!! Surprised.. so was I..!! &lt;span style="color: rgb(255, 0, 0);"&gt;:D&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Whole of the language depends on just an array. Every manipulation has to be done in the array using a memory pointer, which moves through the memory blocks of the array. Now, getting over to the practical implementation of the language. The eight symbols are:&lt;br /&gt;&lt;br /&gt;&gt; = increases memory pointer, or moves the pointer to the right 1 block.&lt;br /&gt;&lt; = decreases memory pointer, or moves the pointer to the left 1 block.&lt;br /&gt;+ = increases value stored at the block pointed to by the memory pointer&lt;br /&gt; - = decreases value stored at the block pointed to by the memory pointer&lt;br /&gt; [ = like c while(currentBlockValue != 0) loop.&lt;br /&gt; ] = if block currently pointed to's value is not zero, jump back to [&lt;br /&gt; , = like c getchar(). input 1 character.&lt;br /&gt; . = like c putchar(). print 1 character to the console.&lt;br /&gt; I made my first program for SPOJ challenge problem &lt;a href="http://spoj.pl/problems/BFWRITE"&gt;BFWRITE&lt;/a&gt;. Before going through the code I would give you the link of an online compiler for BrainF_ck language. I prefer &lt;a href="http://www.lordalcol.com/brainfuckjs/"&gt;BrainF interpreter&lt;/a&gt;. So now, here's my code:  &lt;ol&gt;&lt;li style="color: rgb(255, 0, 0);"&gt; ++++++++++&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt; [&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;&gt;+++++++&gt;++++++++++&gt;+++&lt;&lt;&lt;-&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;]&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;&gt;+++++++++++++.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;---.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;-.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;-----.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;&gt;&gt;++.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;&lt;+++++.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;++++++++++.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;&gt;.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;&lt;----------.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;+++++.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;----------.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;+.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;-.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;&gt;.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;&lt;---.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;++++++++++++++++++++++.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;------------------.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;++++++++++++++.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;----.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;--.&lt;/li&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;--------.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Looks quite difficult to understand but I'll make it simpler for you.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;First line assigns value 10 to a[0]&lt;/li&gt;&lt;li&gt;Second line begins a loop checking value of current block a[0].&lt;/li&gt;&lt;li&gt;Third line moves pointer ahead once(&gt;) and assigns value 7 to a[1](++++++). The same line then again pushes pointer to a[2] and assigns value 10. 3 value is given to a[3]. The pointer returns back to a[0](&lt;&lt;&lt;) and decrements the value to 9. &lt;/li&gt;&lt;li&gt;In the fourth line.. loop goes on until the value of a[0] exhausts. &lt;/li&gt;&lt;li&gt;Finally the values are.. a[0]=0, a[1]=70, a[2]=100, a[3]=30.&lt;/li&gt;&lt;li&gt;The sixth line decreases a[1] by 3 and makes its value equal to 67. '.' prints the value 'S', ASCII code of 67.&lt;/li&gt;&lt;li&gt;Likewise the further lines print the text:- 'P','O','J',' ','i','s',' ','i','n','d','e','e','d',' ','a','w','e','s','o','m','e'. Hence on our output comes as:-   &lt;span style="color: rgb(0, 102, 0);"&gt;SPOJ is indeed awesome&lt;/span&gt;.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt; I further improved my code to 153 characters. Instead of making the array 70, 100, 30 in the beginning I made the array as 64, 32, 104, 112. Try it out yourself to optimize the code.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-675154509718244516?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/675154509718244516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/11/my-experience-with-brainfck-programming.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/675154509718244516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/675154509718244516'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/11/my-experience-with-brainfck-programming.html' title='My experience with BrainF_ck Programming Language'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-8476708294208237557</id><published>2009-10-30T12:50:00.000-07:00</published><updated>2010-01-06T02:24:45.538-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='algorithms'/><category scheme='http://www.blogger.com/atom/ns#' term='c'/><title type='text'>How to handle very large test cases in c++</title><content type='html'>Most of us come across some c++ problems where we are asked to get some simple calculations done. For example: we can get a problem of subtracting 1 from a 100 digit number. Now, subtracting one is not a big problem for us but the problem is '100 digit number'.&lt;br /&gt;&lt;br /&gt;None of the datatype has capacity to store such a large number. Stop thinking about unsigned long long.. even it cant..!! So, here's a short solution to this cute problemo..&lt;br /&gt;&lt;br /&gt;We can take the input as a string and process each of its elements as in elementary mathematics i.e. if last digit is'nt 0 then reduce it by 1(dont forget it to convert to int and then back to string).. if last digit is zero then make it nine and move back to the adjacent digit following the same procedure. Simple &lt;span style="color: rgb(255, 0, 0);"&gt;:)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here's the source code..&lt;br /&gt;&lt;br /&gt;&lt;blockquote style="color: rgb(255, 0, 0);"&gt;#include&lt;iostream&gt;&lt;br /&gt;using namespace std;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;int i,t=40;&lt;br /&gt;string z;&lt;br /&gt;cin&gt;&gt;z;&lt;br /&gt;i=z.size()-1;&lt;br /&gt;do&lt;br /&gt;{&lt;br /&gt;   if(z[i]!='0')&lt;br /&gt;   {&lt;br /&gt;       z[i]=int(z[i])-1;&lt;br /&gt;       break;&lt;br /&gt;   }&lt;br /&gt;   z[i--]=57;&lt;br /&gt;&lt;br /&gt;}while(i&gt;=0);&lt;br /&gt;&lt;z;&gt;&lt;a;&gt;&lt;/a;&gt;&lt;/z;&gt;&lt;/iostream&gt;&lt;/blockquote&gt;Then print the string a.&lt;br /&gt;&lt;br /&gt;The only problem comes when we give input as 10, 100, 1000, 10000 ... the answer comes out as 09, 099, 0999, 09999... instead of normal numbers such as.. 9, 99, 999, 9999... I have resolved this problem for myself.. I'll not upload the source.. try it out yourself..!! ;)&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-8476708294208237557?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/8476708294208237557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/10/how-to-handle-very-large-test-cases-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/8476708294208237557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/8476708294208237557'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/10/how-to-handle-very-large-test-cases-in.html' title='How to handle very large test cases in c++'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-70035993936456480</id><published>2009-10-18T00:53:00.000-07:00</published><updated>2010-02-02T00:34:36.151-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='topcoder'/><category scheme='http://www.blogger.com/atom/ns#' term='gettingStarted'/><category scheme='http://www.blogger.com/atom/ns#' term='c'/><title type='text'>Getting started with TopCoder..</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/__JLOqnlHtik/StrM8eZx_sI/AAAAAAAAALM/finLeftI6ZM/s1600-h/top.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 51px;" src="http://3.bp.blogspot.com/__JLOqnlHtik/StrM8eZx_sI/AAAAAAAAALM/finLeftI6ZM/s320/top.png" alt="" id="BLOGGER_PHOTO_ID_5393848843055005378" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;After successfully coding the first time in &lt;a href="http://www.topcoder.com/tc"&gt;Topcoder&lt;/a&gt;, I really feel greatful in sharing my experience with all. Simply, it was great. Got to learn a lot of new things. I have started it too late but being in UPTU and that too in a college where seniors are not that into coding, it was still very early.. ;)&lt;br /&gt;&lt;br /&gt;So, m writing this post to acquaint my mates with the TopCoder Competitions. What I m goin to discuss is all about the algorithm competitions.&lt;br /&gt;Top Coder is a programming arena where you are given a set of problems and you have to solve them (in your preferred language) in a given amount of time. There are some simple steps to follow before starting with the coding competition:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Goto Topcoder site and get yourself &lt;a href="http://www.topcoder.com/reg/"&gt;registered&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Now when you are registered, download the &lt;a href="http://go2.wordpress.com/?id=725X1342&amp;amp;site=thevc.wordpress.com&amp;amp;url=http%3A%2F%2Fwww.topcoder.com%2Fcontest%2Farena%2FContestAppletProd.jnlp"&gt;Topcoder arena&lt;/a&gt;. You will need Java to be installed in your system for making the applet run.&lt;/li&gt;&lt;li&gt;Get yourself an editor(I use &lt;a href="http://go2.wordpress.com/?id=725X1342&amp;amp;site=thevc.wordpress.com&amp;amp;url=http%3A%2F%2Fwww.topcoder.com%2Fcontest%2Fclasses%2FKawigiEdit%2FKawigiEdit.jar"&gt;KawigiEdit&lt;/a&gt;). The editor helps in generating the code required for the competition. If you need help to install it.. read &lt;a href="http://www.topcoder.com/contest/classes/KawigiEdit/KawigiEdit.html"&gt;this&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Start the contest application and start navigating. There are practice rooms where you can practice the earlier SRM's(single round matches).&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;SRM are the single round matches which are organized twice every month. You are given three problems to solve. What you need to do is to generate the code using KawigiEdit and simply put your logic in the function provided.&lt;br /&gt;The important point about TopCoder is that you don't use the main() method in your code. All your logic is dumped inside a function and you have to return your answer instead of printing it.&lt;br /&gt;The several phases of the competition are:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Coding Phase&lt;/span&gt;: During this phase you are given 75mins of time to solve as many problems as you can. What you need to do is to write your code, compile it and after rigourous testing on test cases provided and some of your own test cases, "submit" it.&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Intermission&lt;/span&gt;: 5mins intermission.. I hear a song usually.. :)&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Challenge Phase&lt;/span&gt;: During this phase in 20mins time any of the room members can see your code or you can see theirs. If anyone finds anything wrong with anyone's code, he can simply challenge it. If he succeeds the  submitted problem will be discarded and points will fall back to 0.00&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;System Testing Phase&lt;/span&gt;: After the challenge phase comes System Testing Phase. This takes a fare bit of time. After near about 20mins you can goto tools and room summary for checking whether your code passed the System Testing or not.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;After about 2 hrs of play the result is out..!! If you see your name coloured (Green,Blue,Yellow,Red), feel like a champ. If you are Grey, you need to practice more and more. The colors listed above are in hierarchical order.. i mean Red is the highest pointer(2200+) whereas grey is the lowest(001-899).&lt;br /&gt;&lt;br /&gt;Being associated with IEEE, TopCoder is a good platform for being recruited. Moreover, it hons your programming skills, giving your career a boost.&lt;br /&gt;&lt;br /&gt;You can watch your entire TopCoder profile by just entering your username in the handle.&lt;br /&gt;I m listing some of the TopCoder handles that will inspire you a lot..&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Some foreigners:&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.topcoder.com/tc?module=MemberProfile&amp;amp;cr=19849563"&gt;ACRUSH&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.topcoder.com/tc?module=MemberProfile&amp;amp;cr=10574855"&gt;petr&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Some Indians:&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.topcoder.com/tc?module=MemberProfile&amp;amp;cr=7581406"&gt;konqueror&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.topcoder.com/tc?module=MemberProfile&amp;amp;cr=22419265" class="coderTextRed"&gt;innocentboy&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.topcoder.com/tc?module=MemberProfile&amp;amp;cr=22649749"&gt;vijay03&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.topcoder.com/tc?module=MemberProfile&amp;amp;cr=10211498"&gt;shalinmangar&lt;/a&gt; (from JSS.. a thing to feel proud of..)&lt;br /&gt;&lt;br /&gt;Here's my handle.. its not that good.. I'll improve it further.. m sure..&lt;br /&gt;&lt;a href="http://www.topcoder.com/tc?module=MemberProfile&amp;amp;cr=22761979"&gt;vaibhavpandey&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;* * * * *&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-70035993936456480?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/70035993936456480/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/10/getting-started-with-topcoder.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/70035993936456480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/70035993936456480'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/10/getting-started-with-topcoder.html' title='Getting started with TopCoder..'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/__JLOqnlHtik/StrM8eZx_sI/AAAAAAAAALM/finLeftI6ZM/s72-c/top.png' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-3654619782238963406</id><published>2009-10-14T03:52:00.000-07:00</published><updated>2009-10-14T03:54:43.085-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='c'/><title type='text'>SIGSEGV error in c++ programs</title><content type='html'>While solving a question &lt;a href="http://spoj.pl/problems/TOANDFRO"&gt;TOANDFRO&lt;/a&gt; in &lt;a href="http://spoj.pl"&gt;spoj&lt;/a&gt; I was introduced to the SIGSEGV (segmentation fault) error. The very first thing, as I often do, I googled the error. The forums I visited and info I got simply did'nt tell me what exactly went wrong with my code. So, after a "deep-deep" analysis I m here to provide my readers with the solution to such an error.&lt;br /&gt;&lt;br /&gt;There are various causes of segmentation faults, but fundamentally, you are accessing memory incorrectly. This could be caused by dereferencing a null pointer, or by trying to modify read only memory, or by using a pointer to somewhere that is not mapped into the memory space of your process.&lt;br /&gt;A segfault basically means you did something bad with pointers. This is probably a segfault:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;char *c = NULL;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;*c; &lt;span style="color: rgb(0, 153, 0);"&gt;// dereferencing a NULL pointer&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Or this:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;char *c = "Hello";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;c[10] = 'z'; &lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;// out of bounds, or in this case, writing into read-only memory&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Or maybe this:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;char *c = new char[10];&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;delete [] c;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;c[2] = 'z';&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;// accessing freed memory&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-3654619782238963406?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/3654619782238963406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/10/sigsegv-error-in-c-programs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/3654619782238963406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/3654619782238963406'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/10/sigsegv-error-in-c-programs.html' title='SIGSEGV error in c++ programs'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-7014605691902277583</id><published>2009-10-03T11:44:00.000-07:00</published><updated>2010-01-06T02:14:56.458-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='SPOJ'/><category scheme='http://www.blogger.com/atom/ns#' term='gettingStarted'/><category scheme='http://www.blogger.com/atom/ns#' term='c'/><title type='text'>Getting started with SPOJ (Sphere Online Judge)</title><content type='html'>After successfully getting involved in &lt;a href="http://www.spoj.pl/"&gt;SPOJ&lt;/a&gt; I think I must give a little idea of it to others too. SPOJ is an online coding website for practicing ACM-ICPC style problems.&lt;br /&gt;You need to join this website if you are interested in coding and have a thirst to solve new problems otherwise you can sit back and relax hearing your music stuff.. &lt;span style="color: rgb(255, 0, 0);"&gt;:p&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To start with you can register for SPOJ &lt;a href="https://www.spoj.pl/register/"&gt;here&lt;/a&gt;.&lt;br /&gt;After getting registered you can see number of problems. Right now there are around 4K+ problems at SPOJ. For submitting a problem in whichever language you desire you can click submit and submit your file or directly the source code. One of the best things about online judges is their instant feedback. You dont have to wait for your program to get judged! The judge results are:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Accepted&lt;/span&gt; – The output from your program perfectly matched the required output. This problem is then added to your list of accepted problems.&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Time Limit Exceeded&lt;/span&gt; – It means your program took too long to execute. Try optimizing your program and check for accidental infinite loops.&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Wrong Answer&lt;/span&gt; – Your program ran on time, but it did not produce the required output.&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Compile Error&lt;/span&gt; -Your program had some syntax error. For these errors, click on the text “Compile Error” in the judge result. It`ll take you a page which will list the compile errors and their line numbers in your program. The compilation error can also be sent to you as mail.&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Runtime Error&lt;/span&gt; – This is usually accompanied by a code like SIGSEV. It can happen due to a lot of reasons, but the two most common are using too much memory ( you can use around 6000*6000*4 bytes of memory ) and not remembering to use int main() and return 0 in your programs. (NZEC error).&lt;/li&gt;&lt;/ul&gt;Your ranking in SPOJ arena is dynamic. More the number of users who solve the problem you'v solved lesser will be points gained. The points you gain in SPOJ come with the formula:&lt;br /&gt;&lt;br /&gt;points= 80/(40+users successfully solved the problem)&lt;br /&gt;&lt;br /&gt;So, more the difficult question you solve more points you get and higher is your rank. Even your institute gets ranked on your points. Check your institute's rank &lt;a href="https://www.spoj.pl/ranks/institutions/"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Here is my SPOJ handle.. &lt;a href="https://www.spoj.pl/users/vaibhav_pandey/"&gt;vaibhav_pandey&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Start coding now!!!&lt;br /&gt;&lt;br /&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-7014605691902277583?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/7014605691902277583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/10/getting-started-with-spoj-sphere-online.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/7014605691902277583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/7014605691902277583'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/10/getting-started-with-spoj-sphere-online.html' title='Getting started with SPOJ (Sphere Online Judge)'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-7474866729432920352</id><published>2009-09-29T10:50:00.000-07:00</published><updated>2009-09-29T11:01:47.617-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='programming languages'/><title type='text'>SCALA programming language</title><content type='html'>While coding in SPOJ. I came across a new programming language named SCALA. I searched a hell lot of things about the language.&lt;br /&gt;&lt;br /&gt;Scala goes out of it's way to make sure you don't need to program in a functional style. This is the main criticism of Scala from functional folks, as a matter of fact: some do not consider a language functional unless it forces the programmer to write in functional style.&lt;br /&gt;Scala already introduces some nice features, comparable to some stuff that's present in C++ but not Java, though they work in different fashion. In that respect, once you realize what such features are for and relate them to C++ stuff, you'll be much ahead of Java programmers, as you'll already know what to do with them.&lt;br /&gt;&lt;br /&gt;Some of the downsides of Scala are not related at all to the relative youth of the language. After all, Scala, has about 5 years of age, and Java was very different 5 years into its own lifespan.&lt;br /&gt;In particular, because Scala does not have the backing of an enterprise which considers it a strategic priority, so the support resources for it are rather lacking. For example:&lt;br /&gt;&lt;br /&gt;    * Lack of extensive tutorials&lt;br /&gt;    * Inferior quality of the documentation&lt;br /&gt;    * Non-existing localization of documentation&lt;br /&gt;    * Native libraries (Scala uses Java or .Net libraries as base for their own)&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-7474866729432920352?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/7474866729432920352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/09/scala-programming-language.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/7474866729432920352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/7474866729432920352'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/09/scala-programming-language.html' title='SCALA programming language'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-3863522780543324633</id><published>2009-09-20T13:12:00.000-07:00</published><updated>2009-09-20T13:18:36.595-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='optimization'/><title type='text'>Optimization</title><content type='html'>During coding, what we need to keep in our minds is optimize the code. The direct code which hits our brain at the first instance is generally not that optimized. If given a large test case to examine the code, it fails to complete the execution in time. I came to know about this while playing online a coding event in which besides code to be right one's code should run in an asked period of time. For this we need to optimize our code a great extent.&lt;br /&gt;I was asked to print all the prime numbers between given two numbers. The first code that comes to our mind is to run a loop and find all the prime numbers by dividing each number with every other number. Mind you, this takes a hell lot of time. One can optimize the code easily by discluding the numbers that get divided by 2,3,5. This takes away numbers out from the loop that prevent us from checking them. The time limit set hence becomes a little reachable.&lt;br /&gt;The second thing is logic. One can even look at the problem at different angle. You can yourself Google and find that there are many other good methods of finding a prime number. One method needs the loop to run only for (n)^(1/2) times. This also reduces the time a great deal.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;CODE IT.. OPTIMIZE IT!!&lt;br /&gt;&lt;br /&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-3863522780543324633?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/3863522780543324633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/09/during-coding-what-we-need-to-keep-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/3863522780543324633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/3863522780543324633'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/09/during-coding-what-we-need-to-keep-in.html' title='Optimization'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-311771758273734346</id><published>2009-09-11T03:52:00.000-07:00</published><updated>2009-09-11T03:56:40.559-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='google'/><title type='text'>Back up your Gmail account</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/__JLOqnlHtik/Sqos3Du2BlI/AAAAAAAAAI8/7BxtN0wPpkU/s1600-h/340x_gmail_backup_screenshot.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 107px;" src="http://3.bp.blogspot.com/__JLOqnlHtik/Sqos3Du2BlI/AAAAAAAAAI8/7BxtN0wPpkU/s320/340x_gmail_backup_screenshot.jpg" alt="" id="BLOGGER_PHOTO_ID_5380162029253690962" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;Gmail doesn't have to go down globally for our email access to be cut off—our internet could go down, or our account could even be disabled. Whatever the case, it's a good idea to have a backup plan just in case the worst should happen.&lt;br /&gt;&lt;br /&gt;They've got us covered with a number of methods for backing up our Gmail, starting with the really obvious solution of just using Thunderbird to back up our email with POP access, but we can backup our email with Fetchmail on Windows, Getmail on Linux, the standalone Gmail Backup tool, or even use Google Groups to backup your Gmail account.&lt;br /&gt;&lt;br /&gt;So, don't think much.. just get urself backed up!!&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-311771758273734346?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/311771758273734346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/09/back-up-your-gmail-account.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/311771758273734346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/311771758273734346'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/09/back-up-your-gmail-account.html' title='Back up your Gmail account'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/__JLOqnlHtik/Sqos3Du2BlI/AAAAAAAAAI8/7BxtN0wPpkU/s72-c/340x_gmail_backup_screenshot.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-343755608823820638</id><published>2009-09-03T18:29:00.000-07:00</published><updated>2010-05-26T02:29:39.423-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='google code jam'/><category scheme='http://www.blogger.com/atom/ns#' term='c'/><category scheme='http://www.blogger.com/atom/ns#' term='google'/><title type='text'>Google Code Jam 2009</title><content type='html'>This was the first time I registered for Google Code Jam. Researching about this great event I came to know that it gives way to free use of languages. Google allows its participants to code in any language they wish to. Starting from c, c++, java, batch files to php, perl, brainf*ck and all.&lt;br /&gt;&lt;br /&gt;It was the qualification round in which I scratched my 'hairless' head throughout the day. The round consisted of three questions. One had to submit an output file of solution of test cases. Each question consisted of two test cases small and large. 4 minutes of time was given to a participant to upload his source code file and the output file in small test cases. Time was increased to 8 mins in case of large test cases. It was necessary to solve at least one small test case and one large test case of any question to qualify for next round. I was able to solve a small one.. :)&lt;br /&gt;&lt;br /&gt;The question I solved was called "Alien Language". One can easily 'google' the whole question. I m giving the source code which I submitted :&lt;br /&gt;&lt;br /&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;/span&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;using namespace std;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;int change(string strConvert)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;      int intReturn;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;      intReturn = atoi(strConvert.c_str());&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;      return(intReturn);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;void main()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     ifstream myfile("g1.txt");&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     ofstream opens("g2.txt");&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     string line;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     int cases=0;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     char words[800][800],letters[800][800],answers[800][800];&lt;/span&gt;&lt;br /&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;int L,D,N,r=0,c=0,f=0,m;&lt;/span&gt;&lt;br /&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;getline(myfile,line,' ');&lt;/span&gt;&lt;br /&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;L=change(line);&lt;/span&gt;&lt;br /&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;getline(myfile,line,' ');&lt;/span&gt;&lt;br /&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;D=change(line);&lt;/span&gt;&lt;br /&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;getline(myfile,line,'\n');&lt;/span&gt;&lt;br /&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;N=change(line);&lt;/span&gt;&lt;br /&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;for(long int i=0;i++)&lt;/span&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;br /&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;{&lt;br /&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;getline(myfile,line,'\n');&lt;br /&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;  for(int j=0;j++)&lt;l;j++)&gt;&lt;br /&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;{&lt;br /&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;    words[i][j]=line[j];&lt;br /&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;}&lt;br /&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;words[i][L]='\0';&lt;br /&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;}&lt;br /&gt;for(int q=0;q++)&lt;n;q++)&gt;&lt;br /&gt;{&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;cases=0;&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;r=0;&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;getline(myfile,line,'\n');&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;f=0;&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;m=line.size();&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;while(f!=m)&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;{&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;   if(line[f]=='(')&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;{&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;       while(line[f]!=')')&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;      {&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;         f++;&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;        if(line[f]!=')')&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;{&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;              letters[r][c]=line[f];&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;               c++;&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;}&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;      }&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;     letters[r][c]=NULL;&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;     f++;&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;      r++;&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;     c=0;&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;}&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;   &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;else&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;{&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;       letters[r][c++]=line[f];&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;     letters[r][c]=NULL;&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;     r++;&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;     c=0;&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;     f++;&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;   }&lt;br /&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;}&lt;br /&gt;for(long int s=0;s++)&lt;d;s++)&gt;&lt;br /&gt;{&lt;br /&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;f=0;&lt;br /&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;for(long int k=0;k+)&lt;l;k++)&gt;&lt;br /&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;{&lt;br /&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;      &lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;for(long int a=0;a++)&lt;strlen(letters[k]);a++)&gt;&lt;br /&gt;&lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;{&lt;br /&gt;&lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;         if(words[s][k]==letters[k][a])&lt;br /&gt;     &lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;{&lt;br /&gt;         &lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;f++;&lt;br /&gt;        &lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;break;&lt;br /&gt;&lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;        }&lt;br /&gt;&lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;   &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;}&lt;br /&gt;&lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;}&lt;br /&gt;&lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;if(f==L)&lt;br /&gt;&lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;   cases++;&lt;br /&gt;&lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;     &lt;/span&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++) style="color: rgb(204, 0, 0);"&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;}&lt;br /&gt;opens&lt;&lt;"Case #"&lt;&lt;q+1&gt;&lt;&lt;": "&lt;&lt;cases&gt;&lt;&lt;"\n";&lt;/cases&gt;&lt;/q+1&gt;&lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++)&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;&lt;q+1&gt;&lt;cases&gt; }&lt;br /&gt;getch();&lt;/cases&gt;&lt;/q+1&gt;&lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++)&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;&lt;q+1&gt;&lt;cases&gt; }&lt;/cases&gt;&lt;/q+1&gt;&lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++)&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;&lt;q+1&gt;&lt;cases&gt; &lt;/cases&gt;&lt;/q+1&gt;&lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++)&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;&lt;q+1&gt;&lt;cases&gt; Explanation of code:&lt;/cases&gt;&lt;/q+1&gt;&lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;/div&gt;&lt;div&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++)&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;&lt;q+1&gt;&lt;cases&gt; What I did in the program is that I took each word of language into a double dimension array called 'words'. Each test case was then bifercated into letters in another double dimension array called 'letters'. The first letter in words was then regularly checked in the different letters of each test case. The moment it matched the loop got broken with an increment of a flag called 'f'. The moment flag became equal to length of word it was sure that the given combination exists, hence, the case variable gets incremented which is ultimately our answer and gets written in the output file.&lt;/cases&gt;&lt;/q+1&gt;&lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;/div&gt;&lt;div&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++)&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;&lt;q+1&gt;&lt;cases&gt;The only problem that came with this solution was during the execution of large test case. It would have been easily implemented through vectors but lack of time compelled me to quit upon it. Actually, due to continuous memory allocation sometimes due to large datasets, the values get written on read only part of memory which generates errors.  &lt;/cases&gt;&lt;/q+1&gt;&lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;iostream&gt;&lt;iostream&gt;&lt;conio&gt;&lt;fstream&gt;&lt;stdio&gt;&lt;conio&gt;&lt;string&gt;&lt;string&gt;&lt;stdlib&gt;&lt;stdio&gt;&lt;fstream&gt;&lt;stdlib&gt;&lt;d;i++)&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;&lt;q+1&gt;&lt;cases&gt;So, I settled with a 10 point mark.. BTW my first experience with Google Code Jam was awesome..!!  &lt;/cases&gt;&lt;/q+1&gt;&lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/fstream&gt;&lt;/stdio&gt;&lt;/stdlib&gt;&lt;/string&gt;&lt;/string&gt;&lt;div style="text-align: center;"&gt;&lt;iostream&gt;&lt;fstream&gt;&lt;conio&gt;&lt;string&gt;&lt;stdio&gt;&lt;stdlib&gt;&lt;d;i++)&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;&lt;q+1&gt;&lt;cases&gt;* * * * *&lt;/cases&gt;&lt;/q+1&gt;&lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/stdio&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/fstream&gt;&lt;/iostream&gt;&lt;br /&gt;&lt;iostream&gt;&lt;fstream&gt;&lt;conio&gt;&lt;string&gt;&lt;stdio&gt;&lt;stdlib&gt;&lt;d;i++)&gt;&lt;l;j++)&gt;&lt;n;q++)&gt;&lt;d;s++)&gt;&lt;l;k++)&gt;&lt;strlen(letters[k]);a++)&gt;&lt;q+1&gt;&lt;cases&gt;&lt;/cases&gt;&lt;/q+1&gt;&lt;/strlen(letters[k]);a++)&gt;&lt;/l;k++)&gt;&lt;/d;s++)&gt;&lt;/n;q++)&gt;&lt;/l;j++)&gt;&lt;/d;i++)&gt;&lt;/stdlib&gt;&lt;/stdio&gt;&lt;/string&gt;&lt;/conio&gt;&lt;/fstream&gt;&lt;/iostream&gt;&lt;/div&gt;&lt;/conio&gt;&lt;/stdio&gt;&lt;/fstream&gt;&lt;/conio&gt;&lt;/iostream&gt;&lt;/iostream&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-343755608823820638?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/343755608823820638/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/09/google-code-jam-2009.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/343755608823820638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/343755608823820638'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/09/google-code-jam-2009.html' title='Google Code Jam 2009'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-5207630866756550937</id><published>2009-08-31T03:23:00.000-07:00</published><updated>2009-08-31T03:35:08.096-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web server'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>Installing apache on windows</title><content type='html'>Instalation:&lt;br /&gt;&lt;br /&gt;First thing you need is to download the webserver. Now for windows users you will have to go for the .exe . The apache website is www.apache.org. You have to head to the apache binaries sections for Win32. I believe it is at http://www.apache.org/dist/httpd/binaries/win32/&lt;br /&gt;There you will be able to download a version of apache.&lt;br /&gt;&lt;br /&gt;Now before you download it you have to make a folder. This folder is one which serves as the root directory. Now if you don't want to do this it's ok. You can use the default path if you want. But usually this helps in setting up other things like php, and MySQL. Most people create a folder in the C:\ directory called WWW or somthin. You can name it whatever you want.&lt;br /&gt;&lt;br /&gt;Ok so you have downloaded the Apache Web Server and ready to go with the setup. The version I have downloaded was apache_2.0.36-win32-x86-no_ssl.msi. This was a newer version and supposedly supposed to be more secure.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;The first screen you get when your in the setup is the welcome screen, we don't care much about that.&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;The next screen is the terms and service. And yes you are going to agree to the terms.&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;The next screen is some documentation. I never really read it but if you want go ahead and do it.&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Now we see a screen that says enter a network domain. Erase what's in there and type localhost.&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Now the next box says Servername, erace what is ever in the box and put in localhost.&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;The next is Administrators e-mail address. Go ahead and fill that in. But make sure to change it.&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Pick radio button that best suites your needs.&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Now that we got that all filled out. Hit Next and you'll go to a screen that asks you which type of install you want to do. Then hit next.&lt;/li&gt;&lt;/ul&gt;If you wanted to server out of your one special folder. Change the file location where you were going to install apache. Or just leave it as the default path. Click install and it should be on it's way. Once it's done installing hit the finish button.&lt;br /&gt;&lt;br /&gt;The test:&lt;br /&gt;First were gonna check to see if Apache installed correctly.&lt;br /&gt;This is how we do it. Open up Internet Explorer and type in " http://localhost" . If everything went smooth then you should be seeing a message that looks like this" Seeing this instead of the website you expected?" Yippee!!!&lt;br /&gt;Apache is working.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-5207630866756550937?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/5207630866756550937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/08/installing-apache-on-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/5207630866756550937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/5207630866756550937'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/08/installing-apache-on-windows.html' title='Installing apache on windows'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-2379855320605948307</id><published>2009-08-13T01:53:00.000-07:00</published><updated>2009-08-25T23:01:46.580-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DB2'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>DB2 Certification</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/__JLOqnlHtik/SpTPvb_dJ9I/AAAAAAAAAIE/_itAEHpuc5s/s1600-h/vai.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 247px;" src="http://1.bp.blogspot.com/__JLOqnlHtik/SpTPvb_dJ9I/AAAAAAAAAIE/_itAEHpuc5s/s320/vai.png" alt="" id="BLOGGER_PHOTO_ID_5374148669234554834" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;A few days training and a stressfull test. All gave me an IBM DB2 associate certificate. What a relief at last!!I would like to share my experiences with the software. BTW m still learning a hell lot of things in it.&lt;br /&gt;DB2 is a database handling software that helps in maintaining large databases. I learned its express-c edition which is available in market free of cost but the most eye catching was the everyplace edition that works on mobile phones. I did'nt get the chance to work on it but soon I will.The installation process though was simple yet hectic. Lots of errors.Command center, configuration assistant, task center, journals, health center, sql assist were all easy to understand. It was very much comfortable to build the sql statements on sql assist with a GUI interface. Express-c edition comes with a pure XML add-on feature. The XML datatype helps in including the XML files in a database. XML files have user defined tags which is where they differ from HTML files where the tags are pre-defined. XML files mainly find their use in transportation and storage of data.Working on sql queries was not new but that on xqueries was a new experience.&lt;br /&gt;Three cheers for IBM for making us, the "UPTU's ruined geniuses", understand such a software. DB2 9.7 "VIPER2" is what I m looking ahead for.&lt;br /&gt;&lt;p align="center"&gt;* * * * *&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-2379855320605948307?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/2379855320605948307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/08/db2-certification.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/2379855320605948307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/2379855320605948307'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/08/db2-certification.html' title='DB2 Certification'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/__JLOqnlHtik/SpTPvb_dJ9I/AAAAAAAAAIE/_itAEHpuc5s/s72-c/vai.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-5043924442603862134</id><published>2009-08-07T00:28:00.000-07:00</published><updated>2009-08-13T03:14:40.580-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><title type='text'>The problem of fu#king "Back" button..</title><content type='html'>Sorry for my indecent title but I was so irritated by this "back" button that I cud'nt stop myself.&lt;br /&gt;After a user logs out himself from a web page and presses the "back" button of his browser he again gets himself logged in. The problem really makes you scratch your head sometimes. I did the same and came out with a cool solution.&lt;br /&gt;&lt;br /&gt;The page in which you are asking user to log out just write the two statements on page load():&lt;br /&gt;&lt;br /&gt;Response.CacheControl = "no-cache";&lt;br /&gt;Response.Cache.AppendCacheExtension("no-store");&lt;br /&gt;&lt;br /&gt;The two statements help in controlling the cache and preventing it to save the previous session.&lt;br /&gt;&lt;br /&gt;Also make a session variable for login of a user. Make the session variable "true" whenever a user logs in and "false" when he logs out. Check on page load() of logout page, if session variable holds "false" value, direct the page to login page. Now if the user clicks back button he'll still remain in the login page or the page you wish to direct him.&lt;br /&gt;My codes:&lt;br /&gt;&lt;br /&gt;protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;Response.CacheControl = "no-cache";&lt;br /&gt;Response.Cache.AppendCacheExtension("no-store");&lt;br /&gt;if (Session["log"] != "true")&lt;br /&gt;{&lt;br /&gt;Response.Redirect("expired.aspx");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;p align="center"&gt;* * * * *&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8016010059186253016-5043924442603862134?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/5043924442603862134/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/08/after-user-logs-out-himself-from-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/5043924442603862134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/5043924442603862134'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/08/after-user-logs-out-himself-from-web.html' title='The problem of fu#king &quot;Back&quot; button..'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8016010059186253016.post-7534308667340071462</id><published>2009-08-06T21:51:00.000-07:00</published><updated>2009-08-06T23:27:04.772-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='c'/><title type='text'>Cool query 'bout pointers</title><content type='html'>While studying 'bout pointers I came about a cool phenomenon. Plzz don't laugh if its a but obvious thing for you. You might be a better coder than me for sure. I figured it out after a number of trials so I can't stop myself sharing it with everyone.&lt;br /&gt;&lt;br /&gt;My question is.. Whats the difference between two statements..&lt;br /&gt;&lt;div style="text-align: center;"&gt;int a=1;&lt;br /&gt;int *p;&lt;br /&gt;*p=a;//statement 1&lt;br /&gt;&lt;br /&gt;AND&lt;br /&gt;&lt;br /&gt;int a=1;&lt;br /&gt;int *p;&lt;br /&gt;p=&amp;a;//statement 2&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;I played with number of printf's to come out with a simple answer. I again warn you if its a but obvious thing plzz do ignore it but it was a beautiful discovery for me though.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;"&gt;p=&amp;amp;a : &lt;/span&gt;in this statement, as we all know, the address of variable 'a' gets stored in pointer p and we say that pointer p points towards the variable a.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;*p=a :&lt;/span&gt; (value of p is equal to a) in this statement, "as now I know", a new address is designated as value 1 and the pointer points to that address rather than pointing towards a. In simple words the address stored in p is  not the address of a.&lt;br /&gt;&lt;br /&gt;try two statements with..&lt;br /&gt;printf("%u" "%u",p,&amp;amp;a);&lt;br /&gt;In first you will find same address and different in the second.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;* * * * *&lt;br /&gt;&lt;/div&gt;&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/8016010059186253016-7534308667340071462?l=vaibhavtechno.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vaibhavtechno.blogspot.com/feeds/7534308667340071462/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/08/cool-query-bout-pointers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/7534308667340071462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8016010059186253016/posts/default/7534308667340071462'/><link rel='alternate' type='text/html' href='http://vaibhavtechno.blogspot.com/2009/08/cool-query-bout-pointers.html' title='Cool query &apos;bout pointers'/><author><name>Vaib|-|av</name><uri>http://www.blogger.com/profile/12426464502738893818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/__JLOqnlHtik/StrNLMOCeeI/AAAAAAAAALU/YiE38DG15L8/S220/topcoder.jpg'/></author><thr:total>0</thr:total></entry></feed>
