Skip to content

Commit edfcccb

Browse files
committed
Fixed format
1 parent a3ec29f commit edfcccb

File tree

1 file changed

+7
-3
lines changed
  • src/main/kotlin/g3301_3400/s3395_subsequences_with_a_unique_middle_mode_i

1 file changed

+7
-3
lines changed

src/main/kotlin/g3301_3400/s3395_subsequences_with_a_unique_middle_mode_i/Solution.kt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,14 @@ class Solution {
5353
ans -= c2[leftY] * rightX * (right - rightX)
5454
ans -= c2[rightY] * leftX * (left - leftX)
5555
ans -=
56-
(leftY
56+
(
57+
leftY
5758
* rightY
58-
* (leftX * (right - rightX - rightY)
59-
+ rightX * (left - leftX - leftY))).toLong()
59+
* (
60+
leftX * (right - rightX - rightY) +
61+
rightX * (left - leftX - leftY)
62+
)
63+
).toLong()
6064
}
6165
}
6266
leftCount[x]++

0 commit comments

Comments
 (0)