Skip to content

Commit 35fb7ae

Browse files
committed
[20251030] BOJ / G4 / 빠른 무작위 메시지 전달 / 김민진
1 parent 663f866 commit 35fb7ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

zinnnn37/202510/30 BOJ G4 빠른 무작위 메시지 전달.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)