We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5910a38 commit 02b42aaCopy full SHA for 02b42aa
1 file changed
zinnnn37/202509/10 BOJ G2 중앙값 구하기.md
@@ -26,6 +26,7 @@ public class BJ_2696_중앙값_구하기 {
26
27
while (T-- > 0) {
28
M = Integer.parseInt(br.readLine());
29
+ bw.write((M / 2 + 1) + "\n");
30
31
s = "";
32
minq = new PriorityQueue<>();
@@ -47,11 +48,10 @@ public class BJ_2696_중앙값_구하기 {
47
48
}
49
50
if (i % 2 == 0) {
- s += maxq.peek() + (i > 2 && (i + 2) % 20 == 0 ? "\n" : " ");
51
+ bw.write(maxq.peek() + (i > 2 && (i + 2) % 20 == 0 ? "\n" : " "));
52
53
- bw.write(maxq.size() + "\n");
54
- bw.write(s + "\n");
+ bw.write("\n");
55
56
bw.flush();
57
bw.close();
0 commit comments