minor fixes
This commit is contained in:
parent
1bd3074c74
commit
52bc9784a2
1 changed files with 4 additions and 4 deletions
|
@ -97,11 +97,11 @@ while(ax < bx && ay < by){
|
||||||
t++;
|
t++;
|
||||||
}
|
}
|
||||||
if(ax == bx && ay == by){ // if they are in the same location
|
if(ax == bx && ay == by){ // if they are in the same location
|
||||||
out.println(t); // they meet at time t
|
pw.println(t); // they meet at time t
|
||||||
} else {
|
} else {
|
||||||
out.println(-1); // they never meet
|
pw.println(-1); // they never meet
|
||||||
}
|
}
|
||||||
out.close(); // flush the output
|
pw.close(); // flush the output
|
||||||
```
|
```
|
||||||
|
|
||||||
</JavaSection>
|
</JavaSection>
|
||||||
|
@ -190,4 +190,4 @@ pw.close(); // flush the output
|
||||||
|
|
||||||
### Harder
|
### Harder
|
||||||
|
|
||||||
<problems-list problems={metadata.problems.harder} />
|
<problems-list problems={metadata.problems.harder} />
|
||||||
|
|
Reference in a new issue