running_pc2
This is an old revision of the document!
Table of Contents
Student Notes for Competing Using PC^2
- One time only: copy /homes/cs390cp/pc2-9.1.6/pc2v9.ini to your local directory somewhere (e.g., ~/pc2).
- Change into the directory where your pc2v9.ini file is located.
- Launch pc2: /homes/cs390cp/pc2-9.1.6/bin/pc2team &
- Log in as teamX/teamX, where X is assigned to you by administrator.
Administrator Notes for Running Programming Competitions with PC^2
Before Class
- Login to cs390cp@pc.cs.purdue.edu
- cd pc2 (assumes pc2 is a symlink to current version, pc2-9.1.6)
- pc2reset [if necessary/desired]
- pc2server & (assumes pc2/bin is in path)
- Login as site1/site1; choose contest password
- pc2admin &
- Login as administrator1/administrator1
- Accounts tab, Generate accounts (1 judge, x teams, 1 scoreboard)
- Optional:
- Load account information from file (see http://pc2.ecs.csus.edu/wiki/Load_Account)
- File generated by web2py in progress/private with dotask genpc2accounts.py
- Languages tab, Add, Auto Populate with Java and GNU C++, possibly GNU C
- Problems tab, Add
- Problem name
- Problem Requires Input Data, Stdin, Input Data File
- Judges have Provided Answer File
- Judging Type tab: Computer judging
- Validator tab: Use PC^2 validator with option “1 - diff”
- Auto judge tab
- Select judge1, Edit
- Shift-select all problems, Enable Auto Judging, Update
In Class
- Relaunch: pc2server and pc2admin
- Times tab (pc2admin)
- Select site1, Edit
- Set/update remaining, elapsed, and length times
- Start ALL
- bin/pc2judge &
- Login as judge1/judge1
- bin/pc2board &
- Login as scoreboard1/scoreboard1
- firefox html/summary.html
running_pc2.1314116657.txt.gz · Last modified: 2011/08/23 09:24 by jtkorb