We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd6caf8 commit 441dcfdCopy full SHA for 441dcfd
src/main/java/g3601_3700/s3671_sum_of_beautiful_subsequences/Solution.java
@@ -53,7 +53,6 @@ public int totalBeauty(int[] nums) {
53
}
54
55
56
-
57
// Inclusion–exclusion to get exact gcd counts
58
long[] exact = new long[maxV + 1];
59
for (int g = maxV; g >= 1; g--) {
@@ -66,7 +65,6 @@ public int totalBeauty(int[] nums) {
66
65
67
exact[g] = s;
68
69
70
long ans = 0;
71
for (int g = 1; g <= maxV; g++) {
72
if (exact[g] != 0) {
@@ -81,7 +79,6 @@ public int totalBeauty(int[] nums) {
81
79
82
80
private static final class Fenwick {
83
private final long[] tree;
84
85
Fenwick(int size) {
86
this.tree = new long[size];
87
0 commit comments