Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 5065dbb

Browse files
committed
Quick edit
1 parent 464bfcb commit 5065dbb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/convention2.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,12 @@ public int compare(cow arg0, cow arg1) {
4343
if(time.get(cows_eaten + j).x >= tc.x+tc.y || theline.contains(time.get(cows_eaten + j))) { // If after the current cow is finsihed then all cows after it we don't have to worry about
4444
break;
4545
}else {
46-
int current_senority = senority.get(time.get(cows_eaten + j));
47-
if(current_senority > maxsenority) {
48-
maxsenority = current_senority;
49-
nextcow = time.get(cows_eaten + j);
50-
}
46+
cows_eaten++;
47+
theline.add(time.get(cows_eaten + j));
5148
}
5249
}
53-
if(nextcow.x != -1 && nextcow.y != -1) {theline.add(nextcow);}
50+
nextcow.x = tc.x + tc.y; // When cow finishes
51+
5452
}
5553

5654

0 commit comments

Comments
 (0)