Power Point on Contest Formats
Download
Report
Transcript Power Point on Contest Formats
BHCSI Programming
Contests
Three contests
Mock Contest #1
UCF High School Online Contest
Friday, July 16th
2:15 – 4:45pm
Thursday, July 22nd
1:00 – 4:00pm
BHCSI Final Contest
Thursday, July 29th
1:00 – 5:00pm
Mock Contest Format
Input from File
Output to Screen
Submission system: CJMS (written at UCF)
Problem Sets
Link: http://cjms.ucfprogrammingteam.org/
Intro – 6 problems (2 no loops, 4 with loops)
Advanced – 4 problems (1 easier, 3 based on lectures)
Teams
2 students each, pre-chosen by staff
Can use only one computer
UCF HS Online Contest Format
Input from Keyboard
Output to Screen
Submission system DOMjudge
Problem Set
Link: http://judge.ucfprogrammingteam.org/team/
Created by UCF Programming Team members
Created for students with reasonable amount of experience
Teams
Individual competition
BHCSI Final Programming Contest
Input from File
Output to Screen
Submission system: CJMS (written at UCF)
Problem Sets
Link: http://cjms.ucfprogrammingteam.org/
Intro – 8 problems (new) not yet written
Advanced – 8 problems (new) not yet written
Teams
2 students each – not yet decided how teams will be chosen
Can use only one computer
How to Read from a File in Java
// Opens input file.
Scanner fin = new Scanner(new File(“input.in”));
// Read each piece of information regularly.
int value = fin.nextInt();
String name = fin.next();
double cost = fin.nextDouble();
// When you are done, close the file.
fin.close();
Other Changes for File Input
Import
import java.io.*;
Main will change slightly:
public static void main(String[] args) throws
Exception {
How to Create a Test Input File
1.
2.
3.
4.
5.
6.
7.
8.
Open notepad.
Type in file contents.
Click “Save As”
Click on “File type”
Click on “Save as type”
Choose “All Files”
Type in name, “problem.in” in File name box.
Click on Save.