minor fixes
This commit is contained in:
parent
1bd3074c74
commit
52bc9784a2
|
@ -97,11 +97,11 @@ while(ax < bx && ay < by){
|
|||
t++;
|
||||
}
|
||||
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 {
|
||||
out.println(-1); // they never meet
|
||||
pw.println(-1); // they never meet
|
||||
}
|
||||
out.close(); // flush the output
|
||||
pw.close(); // flush the output
|
||||
```
|
||||
|
||||
</JavaSection>
|
||||
|
@ -190,4 +190,4 @@ pw.close(); // flush the output
|
|||
|
||||
### Harder
|
||||
|
||||
<problems-list problems={metadata.problems.harder} />
|
||||
<problems-list problems={metadata.problems.harder} />
|
||||
|
|
Reference in a new issue