Registering for the UVa Online Judge
CPE 103
Go to the
UVa Online Judge programming contest site.
This site offers practice programming problems
and an online grader that will judge the correctness
of your submission.
Create an account using your Cal Poly username.
(The instructor will verify you completed the problem
by checking the public rankings for your username).
Read the
directions for submitting a program.
In particular, for Java:
- The Java programs submitted must be in a single source code (not
.class) file. Nevertheless, you can add as many classes as you need in
this file. All the classes in this file must not be within any package.
- All programs must begin in a static main method in a Main class.
- Do not use public classes: even Main must be non public to avoid
compile error.
- Despite what the documentation says, the instructor has
successfully used the Scanner class for input on several
problems.
- Here is an example Java source code file
(Problem 424) that has passed the online judge.
Create a solution and submit it using the Submit button
on the above page. Click on the "My Submissions" link in the left side
navigation panel to see the results.
While the online judge doesn't enforce
any design or coding standards, the goal in this course
is to use an appropriate data structure(s) and create readable and
maintainable code.