Skip to content

Commit

Permalink
switchy
Browse files Browse the repository at this point in the history
  • Loading branch information
javaarchive committed Jul 23, 2020
1 parent e4f36bc commit 1eb39a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions USACOClassLiveTest/src/convention2.java
Expand Up @@ -34,7 +34,7 @@ public int compare(Visitor o1, Visitor o2) {
for (Visitor v : cows) {
System.out.println("Processing cow "+v.time+" who desires to eat "+v.consumptionTime+" time id: "+v.senority+" fTime "+finishTime);
//System.out.println("Finish Time: "+finishTime);
if (v.time >= finishTime) {
if (v.time > finishTime) {
int curTime = finishTime;
System.out.println(v.time+" "+finishTime);
System.out.println(grazingAnimals);
Expand All @@ -53,8 +53,8 @@ public int compare(Visitor o1, Visitor o2) {
curTime += v2.consumptionTime;
grazingAnimals.poll();
}
//System.out.println("Ended with time "+curTime);
if(curTime <= v.time){
System.out.println("Ended with time "+curTime);
if(curTime < v.time){
currentCow = null;
}else{
finishTime = curTime;
Expand Down

0 comments on commit 1eb39a8

Please sign in to comment.