import java.util.*;

public class Verifier
{
    public static final String EXAMPLE1_FILE = "example1.txt";
    public static final int TOTAL_ORE_1 = 13312;
    public static final long TOTAL_FUEL_1 = 82892753L;
    public static final String EXAMPLE2_FILE = "example2.txt";
    public static final int TOTAL_ORE_2 = 180697;
    public static final long TOTAL_FUEL_2 = 5586022L;
    public static final String EXAMPLE3_FILE = "example3.txt";
    public static final int TOTAL_ORE_3 = 2210736;
    public static final long TOTAL_FUEL_3 = 460664L;

    public Verifier (boolean debug)
    {
        _debug = debug;
        _theParser = new Parser(debug);
    }

    public final boolean verify ()
    {
        Vector<Reaction> reactions = _theParser.loadData(EXAMPLE1_FILE);
        NanoRefinery factory = new NanoRefinery(reactions, _debug);
        int oreNeeded = factory.oreNeeded();
        boolean verified = false;

        if (oreNeeded == TOTAL_ORE_1)
        {
            if (_debug)
                System.out.println("Verified "+EXAMPLE1_FILE);

            reactions = _theParser.loadData(EXAMPLE2_FILE);
            factory = new NanoRefinery(reactions, _debug);
            oreNeeded = factory.oreNeeded();

            if (oreNeeded == TOTAL_ORE_2)
            {
                if (_debug)
                    System.out.println("Verified "+EXAMPLE2_FILE);

                reactions = _theParser.loadData(EXAMPLE3_FILE);
                factory = new NanoRefinery(reactions, _debug);
                oreNeeded = factory.oreNeeded();

                if (oreNeeded == TOTAL_ORE_3)
                {
                    if (_debug)
                        System.out.println("Verified "+EXAMPLE3_FILE);

                    verified = true;
                }
                else
                    System.out.println("Failed on "+EXAMPLE3_FILE);
            }
            else
                System.out.println("Failed on "+EXAMPLE2_FILE);
        }
        else
            System.out.println("Failed on "+EXAMPLE1_FILE);

        return verified;
    }

    private boolean _debug;
    private Parser _theParser;
}
@@ -913,16 +913,56 @@
 = false;
+%0A        long totalOre = 1000000000000L;
 %0A%0A      
@@ -1019,983 +1019,46 @@
     
-if (_debug)%0A                System.out.println(%22Verified %22+EXAMPLE1_FILE);%0A%0A            reactions = _theParser.loadData(EXAMPLE2_FILE);%0A            factory = new NanoRefinery(reactions, _debug);%0A            oreNeeded = factory.oreNeeded();%0A%0A            if (oreNeeded == TOTAL_ORE_2)%0A            %7B%0A                if (_debug)%0A                    System.out.println(%22Verified %22+EXAMPLE2_FILE);%0A%0A                reactions = _theParser.loadData(EXAMPLE3_FILE);%0A                factory = new NanoRefinery(reactions, _debug);%0A                oreNeeded = factory.oreNeeded();%0A%0A                if (oreNeeded == TOTAL_ORE_3)%0A                %7B%0A                    if (_debug)%0A                        System.out.println(%22Verified %22+EXAMPLE3_FILE);%0A%0A                    verified = true;%0A                %7D%0A                else%0A                    System.out.println(%22Failed on %22+EXAMPLE3_FILE);%0A            %7D%0A            else%0A                System.out.println(%22Failed on %22+EXAMPLE2_FILE)
+long iterations = totalOre / oreNeeded
 ;%0A  

Update Verifier.java