Courses‎ > ‎AP Computer Science 2‎ > ‎Konstantinovich‎ > ‎

2017-03-02 USACO

posted Mar 2, 2017, 4:08 AM by Samuel Konstantinovich   [ updated Mar 7, 2017, 11:25 AM ]

USACO competition problems 

Start reading both problems carefully so that on Monday we can discuss it.
Read the correct problems. 

These are just general problems – they may use recursion, but then again, they might not.

If you want to work ahead, try the silver on your own over the weekend. I would rather you pair up to discuss and work on the bronze together on Monday. 

On git have the file: 


    in the file have the 2 public methods:

    public int bronze(String filename);

    public int silver(String filename);

AND the DEFAULT constructor:

   public USACO(){}

I will use this class as follows:

USACO x = new USACO(); //does not have to do anything. 

System.out.printl (x.bronze("testfile1"));

System.out.printl (x.silver("testfile2"));