====== Weekly Contest for August 23, 2011 ====== ===== One-Time Setup ===== From your lab workstation, use these commands to get started... % mkdir pc2 % cp -p /homes/cs390cp/pc2/pc2v9.ini pc2 ===== Join the Contest ===== % cd pc2 % /homes/cs390cp/pc2/bin/pc2team & Log in using your individually assigned "teamX" account and password. You can work in the current window/directory, creating a subdirectory for each problem. ===== Problems ===== * A: [[contest_2011-08-23_practice|Getting Started]] * B: [[http://www.programming-challenges.com/pg.php?page=downloadproblem&probid=110101&format=html|The 3n+1 Problem]] * C: [[http://www.programming-challenges.com/pg.php?page=downloadproblem&probid=110102&format=html|Minesweeper]] * D: [[http://www.programming-challenges.com/pg.php?page=downloadproblem&probid=110103&format=html|The Trip]] * E: [[http://www.programming-challenges.com/pg.php?page=downloadproblem&probid=110108&format=html|Australian Voting]] If you've already solved one or more of these problems, try (1) solving again without referring to your old solution, and/or (2) using a different language (Java or C++). If you want to work on an additional problem from this chapter, let [[jtk@purdue.edu|me]] know. **Notes:** * A: (1) Read carefully the part about echoing the input. (2) Is performance an issue? Consider remembering what you've already computed. (3) Do you handle the largest possible input? * B: Make sure you handle the edge cases correctly. * C: 10.03 * 100 != 1003. * D: If the voting results in a tie, print the tied candidates in input order.