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

Commit 593ed06

Browse files
authored
Casework complete!!!!
1 parent c4e97ca commit 593ed06

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

barn1.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public static void main(String[] args) throws IOException{
4040
blockedstall=Integer.parseInt(f.readLine());
4141
stalls[blockedstall]=1;
4242
bstalls[i]=blockedstall;
43-
4443
}
4544
f.close();
4645
f=null;
@@ -55,7 +54,7 @@ public static void main(String[] args) throws IOException{
5554

5655
for(int bs1:bstalls) {
5756
for(int bs2:bstalls) {
58-
if(bs1==bs2 || bs1>bs2) {
57+
if(bs1==bs2 || bs1>bs2 || bs1==0 || bs2==0) {
5958
//System.out.println("Debug point 2: Info, blockedstall: "+blockedstall+", combination: "+combination+", More info: bs1: "+bs1+", bs2: "+bs2);
6059
System.out.println("Both are same, bs1: "+bs1+", bs2: "+bs2);
6160
continue;
@@ -72,8 +71,6 @@ public static void main(String[] args) throws IOException{
7271
}
7372
System.out.println(combination);
7473
combination=0;
75-
//for(int i=0;i<)
76-
74+
//for(int i=0;i<)
7775
}
78-
79-
}
76+
}

0 commit comments

Comments
 (0)