1 of 18

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

2 of 18

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

3 of 18

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

4 of 18

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.

5 of 18

Logging In to the Coding Environment

  1. All coding must be done on the juicemind.com site.

  • Go to the play.juicemind.com/login web page. Login to your premade contest account using the email address teamX@siena.edu where X is replaced by your team number. Use the password in your registration package.

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.

6 of 18

Using the Coding Environment

  • Once you are logged in to Juicemind, click on My Teams/Classes on the left.

  • Then you should My Classses, with one option listed under it. The name of the listed class will vary depending on your programming language (Java or Python) and contest level (Green or Gold).

  • Click on the listed class.

7 of 18

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.

8 of 18

Writing and Running A Python Solution

  1. If your team is coding in Python, each problem will have starter code provide like that shown on the right.

  • Write your solution code inside the function called main. You may write and call other functions but execution always starts in function main.

  • Press the Run button at top to run your code. Type in any input to your program in the console window at the bottom. Output will appear in the console window.

9 of 18

Writing and Running A Java Solution

  • If your team is coding in Java, each problem will have starter code provide like that shown on the right.

  • Write your solution code inside the method called main. You may write and call other methods but execution always starts in method main.

  • Press the Run button at top to run your code. Type in any input to your program in the console window at the bottom. Output will appear in the console window.

10 of 18

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.

11 of 18

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.

12 of 18

Step 1 in submitting a solution for judging: Download the file

  1. Click on the file button at top. Then click on the 3 dots to right of the name of your code file. In the menu that pops up, select the Download option.

  • In the Save popup window, make sure the filename is correct and then press the Yes button. This will save the file in the Downloads folder on your PC.

⭐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

13 of 18

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

14 of 18

Step 3 in submitting a solution for judging: Upload file to PC2

  1. Click the Submit Problem button in the top left of the PC2 window. The window shown on the right will pop up.

  • Select the problem whose solution you are submitting and the language you are using.

  • Then click on the Main File button.

  • A file explorer window will pop up. Navigate to the Downloads folder where you saved ProblemX.py or ProblemX.java and click on the file. Then click the Open button.

  • Finally click the Submit button. After your program is judged, you will get a pop up window telling you the results.

15 of 18

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

16 of 18

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.

17 of 18

Solutions to the Orientation Problem, in Python & Java

The Juicemind Python is version 3.10 and the Juicemind Java is version 17.0.

18 of 18

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