Skip to content

Commit 7458eef

Browse files
committed
Fixed format
1 parent 9e4abc7 commit 7458eef

File tree

1 file changed

+3
-3
lines changed
  • src/main/java/g2901_3000/s2930_number_of_strings_which_can_be_rearranged_to_contain_substring

1 file changed

+3
-3
lines changed

src/main/java/g2901_3000/s2930_number_of_strings_which_can_be_rearranged_to_contain_substring/Solution.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ public int stringCount(int n) {
2121
long mod = (int) 1e9 + 7L;
2222
return (int)
2323
(((pow(26, n, mod)
24-
- (n + 75) * pow(25, n - 1L, mod)
25-
+ (2 * n + 72) * pow(24, n - 1L, mod)
26-
- (n + 23) * pow(23, n - 1L, mod))
24+
- (n + 75) * pow(25, n - 1L, mod)
25+
+ (2 * n + 72) * pow(24, n - 1L, mod)
26+
- (n + 23) * pow(23, n - 1L, mod))
2727
% mod
2828
+ mod)
2929
% mod);

0 commit comments

Comments
 (0)