Search found 1 match

by mmoonn
Sun Jul 07, 2013 6:14 am
Forum: Volume 100 (10000-10099)
Topic: 10041 - Vito's Family
Replies: 90
Views: 29161

Re: 10041 - Vito's Family

i want to know what is wrong with my code plz,it gives WA import java.util.Arrays; import java.util.Scanner; public class Main{ public static int[] streets; private static int getDis(int mid) { int dis = 0; for (int i = 0; i < streets.length; i++) { dis += Math.abs(mid - streets[i]); } return dis; }...

Go to advanced search