|
|
@ -15,7 +15,7 @@ public class Problem_0411_MinimumUniqueWordAbbreviation {
|
|
|
|
if ((fix & (1 << i)) != 0) {
|
|
|
|
if ((fix & (1 << i)) != 0) {
|
|
|
|
ans++;
|
|
|
|
ans++;
|
|
|
|
if (cnt != 0) {
|
|
|
|
if (cnt != 0) {
|
|
|
|
ans += (cnt > 9 ? 2 : 1) - cnt;
|
|
|
|
ans += 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cnt = 0;
|
|
|
|
cnt = 0;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -23,7 +23,7 @@ public class Problem_0411_MinimumUniqueWordAbbreviation {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (cnt != 0) {
|
|
|
|
if (cnt != 0) {
|
|
|
|
ans += (cnt > 9 ? 2 : 1) - cnt;
|
|
|
|
ans += 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return ans;
|
|
|
|
return ans;
|
|
|
|
}
|
|
|
|
}
|
|
|
|