Siena’s 38th Annual HS Programming Contest
Instructions For Using Contest Programming Environments & Submitting Contest Problems for Judging
Quick links:
Contest web site: contest.sienacs.com
Contest programming Environment: play.juicemind.com/login
PC2 submission link: pc2.siena.edu:8080
Contest scoreboard:scoreboard.sienacs.com
Python documentation: docs.python.org/3.10
Java API documentation: https://docs.oracle.com/en/java/javase/17/index.html
Login to Team’s Assigned PC and Set Up Chrome
1. Use your Windows/Mac login and password information to log in to the
desktop or laptop computer assigned to your team. You can find this information
in your contest team’s registration folder.
2. If on a Windows PC, start the Chrome browser
by double clicking on the desktop icon.
If on a MacBook, click on Launch Pad or
at the bottom, type Chrome in the search box at
top, and then click on the Chrome icon that pops
up.
3. The next few steps (4-7) are very important! They
change the Chrome download setting for saving
files.
4. In Chrome, click on the 3 dots to the right hand
side of the toolbar and select Settings from the
drop-down menu.
Click on these dots
Click on Settings
Login to Team’s Assigned PC and Set Up Chrome, continued…
5. Click the hamburger button next to Settings on the left.
6. In the pop down menu, select Downloads.
Click on hamburger
Select Downloads
Login to Team’s Assigned PC and Set Up Chrome, continued…
7. Toggle the “Ask where to save each file before downloading” switch, so that it looks like that below.
Toggle to make it look like this.
Logging In to the Coding Environment
All coding must be done in this provided team account. Other Juicemind accounts and other coding environments may not be accessed or used during the contest.
Using the Coding Environment
Using the Coding Environment continued…
4. On the left you will see a coding assignment whose name begins with Prob0. Prob0 is where you will code the practice problem before the contest starts, to make sure everything is working for your team.
5. When the contest starts, you will see seven additional coding assignments on the left. Their names begin with Prob1, Prob2, ..., Prob7 – one for each of the contest problems. Click on the one you want to work on. Note - you may need to refresh the window at the beginning of the contest to see them.
Writing and Running A Python Solution
Writing and Running A Java Solution
Input Examples using Python
# read in entire line of input as string
str = input()
# read in integer value on line by itself
x = int( input() )
# read in float value on line by itself
y = float( input() )
# read in 10 integer values, all on the same line, and put into a list of ints
line = input() # first read in entire line as a string
numsStrs = line.split() # split it into a list of individual strings
nums = [] # create empty list
for i in range(0, len(numsStrs)): # convert each string in numsStr into
nums.append(int(numsStrs[i])) # an int and append to list nums
# sum all the values in nums
total = 0
for i in range(0, len(nums)):
total = total + nums[i]
print( "Output: ", str, x, y, total )
Example run of code on this slide.
Input Examples using Java
import java.util.Scanner; // must be at top of file
Scanner scrn = new Scanner( System.in );
// read in entire line of input as string
String str = scrn.nextLine();
// read in integer value on line by itself
int x = scrn.nextInt();
// read in double value on line by itself
double y = scrn.nextDouble();
// read in 10 integer values, all on the same line, and put into an array of ints
int[] nums = new int[10];
for (int i = 0; i < 10; i++) {
nums[i] = scrn.nextInt();
}
// sum all the values in nums
int total = 0;
for (int i = 0; i < 10; i++) {
total = total + nums[i];
}
System.out.println( "Output: " + str + " " + x + " " + y + " " + total );
Example run of code on this slide.
Step 1 in submitting a solution for judging: Download the file
⭐If you have saved the file before, it will try to rename your file something like Problem0 (1).py or Problem0 (1).java. You must change this to Problem0.py or Problem0.java. ⭐
If it asks if you want to replace the file, click on Yes.
Click the three dots first, then Download
Rename the file to Problem0.py or Problem0.java
Step 2 in submitting a solution for judging: Log on to PC2
If you are not already logged on to PC2, then you should go to pc2.siena.edu:8080 and type in your contest team’s name and password, as shown below. You can find this login information in your contest team’s registration folder.
Team11
Step 3 in submitting a solution for judging: Upload file to PC2
Possible responses from the judges
Full List of Responses | What it Means |
Yes | Your program ran successfully, congrats! |
No - Run-time error | Your program had a run time error |
No - Compile error | Your program had a compile error |
No - Output format error | The output was not formatted correctly |
No - Wrong answer | Your program ran but outputted an incorrect answer |
No - Time limit exceeded | Your program ran for too long |
Siena College’s Annual High School Programming Contest
Sponsored by Transfinder
Orientation Practice Problem
Programming Problem:
Input: A positive integer M that is a perfect square.
Output: The square root of M.
Example 1: Input: 81
Output: 9
Example 2: Input: 36
Output: 6
At the contest, after an orientation presentation in Key Auditorium, you will have the opportunity to go to your team’s assigned computer and write code for and submit for judging a solution to this practice orientation problem. This will allow you to try out the contest software and logins. If you have any questions as you do this, it is a great time to ask for help from a Siena student or faculty volunteer. Sample solutions to this practice problem are provided on the next slide.
Solutions to the Orientation Problem, in Python & Java
The Juicemind Python is version 3.10 and the Juicemind Java is version 17.0.
Siena College’s Annual High School Programming Contest
Sponsored by Transfinder
Orientation Practice Problem
Programming Problem:
Input: A positive integer M that is a perfect square.
Output: The square root of M.
Example 1: Input: 81
Output: 9
Example 2: Input: 36
Output: 6