728x90 반응형 119621 [백준] 11962번 : Counting Haybales https://www.acmicpc.net/problem/11962 해당 문제는 느리게 갱신되는 세그먼트 트리(lazy seg)의 기본 문제 중 하나로, min과 max를 구하는 문제입니다. import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.StringTokenizer;public class Main{ static long[] arr, lazy, tree, mintree; public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new .. 2025. 8. 31. 이전 1 다음 728x90 반응형