File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ public class BJ_25835_빠른_무작위_메시지_전달 {
88 private static final BufferedWriter bw = new BufferedWriter (new OutputStreamWriter (System . out));
99 private static StringTokenizer st;
1010
11- private static long ans;
11+ private static int ans;
1212 private static int [][] friends;
1313 private static boolean [] visited;
1414
@@ -23,7 +23,7 @@ public class BJ_25835_빠른_무작위_메시지_전달 {
2323 }
2424
2525 private static void init () throws IOException {
26- ans = Long . MAX_VALUE ;
26+ ans = Integer . MAX_VALUE ;
2727
2828 friends = new int [12 ][12 ];
2929 for (int i = 0 ; i < 12 ; i++ ) {
@@ -46,7 +46,7 @@ public class BJ_25835_빠른_무작위_메시지_전달 {
4646 }
4747 }
4848
49- private static void dfs (int depth , int cur , long sum ) throws IOException {
49+ private static void dfs (int depth , int cur , int sum ) throws IOException {
5050 if (depth == 6 ) {
5151 ans = Math . min(ans, sum);
5252 return ;
You can’t perform that action at this time.
0 commit comments