Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfc2b1ac

Browse files
authored
Improved task 2477
1 parent2bb2ef4 commitfc2b1ac

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/g2401_2500/s2477_minimum_fuel_cost_to_report_to_the_capital

1 file changed

+1
-1
lines changed

‎src/main/java/g2401_2500/s2477_minimum_fuel_cost_to_report_to_the_capital/Solution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public long minimumFuelCost(int[][] roads, int seats) {
2424
}
2525

2626
privatelongsolve(ArrayList<ArrayList<Integer>>adj,intseats,intsrc,intparent) {
27-
intpeople =1;
27+
longpeople =1L;
2828
for (inti :adj.get(src)) {
2929
if (i !=parent) {
3030
people +=solve(adj,seats,i,src);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp