Skip to content

Commit dcaba26

Browse files
committed
Fixed format
1 parent 30a54dc commit dcaba26

File tree

1 file changed

+6
-2
lines changed
  • src/main/java/g3401_3500/s3448_count_substrings_divisible_by_last_digit

1 file changed

+6
-2
lines changed

src/main/java/g3401_3500/s3448_count_substrings_divisible_by_last_digit/Solution.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,17 @@ private long countDivisibilityCases(
7979
}
8080

8181
private long countDivisibilityBy4(String s, int j) {
82-
if (j == 0) return 1;
82+
if (j == 0) {
83+
return 1;
84+
}
8385
int num = (s.charAt(j - 1) - '0') * 10 + (s.charAt(j) - '0');
8486
return num % 4 == 0 ? j + 1 : 1;
8587
}
8688

8789
private long countDivisibilityBy8(String s, int j) {
88-
if (j == 0) return 1;
90+
if (j == 0) {
91+
return 1;
92+
}
8993
if (j == 1) {
9094
int num = (s.charAt(0) - '0') * 10 + 8;
9195
return (num % 8 == 0 ? 2 : 1);

0 commit comments

Comments
 (0)