Skip to content

Commit 4e53585

Browse files
author
IDON-TEXIST
authored
fix typo
1 parent fbaa886 commit 4e53585

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

solutions/general/usaco-807.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ int main() {
9393
* out whether it is the smallest and best case scenario for teleporting
9494
*/
9595
int dist = abs(a - b); // calculate the distance without travel
96-
if (dist > abs(a - c) + abs(b - d) {
96+
if (dist > abs(a - c) + abs(b - d)) {
9797
dist = abs(a - c) + abs(b - d);
9898
}
9999
// repeat this again with the other possiblity given below
100-
if (dist > abs(a - d) + abs(b - c) {
100+
if (dist > abs(a - d) + abs(b - c)) {
101101
dist = abs(a - d) + abs(b - c);
102102
}
103103

0 commit comments

Comments
 (0)