| |
Harvey Mudd College Computer Science Department Programming Practicum Page HMC ACM 2004 STL STL(SGI) Java API |
TEAM | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||||||||||||
March 29 2005 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Chopsticks (chop.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
chop.in chop.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Dog and Gopher (dog.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
dog.in dog.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From Dusk Til Dawn (vampire.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
vampire.in vampire.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Stern-Brocot Numbers (sternbrocot.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sternbrocot.in sternbrocot.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shoemaker's Problem (shoemaker.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shoemaker.in shoemaker.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Automated Jugde Script (judge.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
judge.in judge.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TEAM | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||||||||||||
March 22 2005 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ant on a chessboard (ant.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ant.in ant.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bigger Square please! (square.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
square.in square.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Repackaging (cups.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cups.in cups.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Self-describing Sequence (seq.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
seq.in seq.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Steps (steps.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
steps.in steps.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Jotto, revisited (jotto.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
no sample files | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TEAM | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||||||||||||
February 15 2005 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ferry Loading (ferry.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ferry.in ferry.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Robbery (robbery.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
robbery.in robbery.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Rope Crisis (rope.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rope.in rope.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Distinct Subsequences (subseq.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
subseq.in subseq.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Light, more light (light.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
light.in light.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Problem Setter (problem.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
problem.in problem.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TEAM | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||||||||||||
January 18 2005 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Erdos Numbers (erdos.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
erdos.in erdos.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
15-puzzle (puzzle.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
puzzle.in puzzle.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Circle Packing (circle.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
circle.in circle.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Pieces of Land (land.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
land.in land.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Hartals (hartals.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
hartals.in hartals.out | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Jotto (jotto.java) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
jotto.in jotto.out |
/cs/ACM/acmSubmit <filename>.ccYou should run acmSubmit from the directory in which your submission file is located (due to my limited understanding of Perl).
The script will test your file against a number of inputs. Unlike the ACM contest, if your submission's output differs from the "correct" output, the differences will be shown to you. This is a protection against the "correct" output not actually being correct. If your program passes all of the tests the script will let you know. It will also email me in order to help me keep the chart of solved problems updated.
While testing your code, you can compile with the commands
javac filename.javaor
g++ filename.ccto create an executable file named a.out. To check your program, download the input and output files (right-click on the links and choose "save link as...") or create your own test inputs, and then run
javaor< <testfilename>
a.out < <testfilename>That will print the results to the console (stdout) for inspection. You might also pipe the results to a file and check them against the anticipated output with diff.