https://www.acmicpc.net/problem/2512import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int[] budget = new int[n]; StringTokenizer st = new StringTokenizer(br.readLine()); for (int i = 0; i 상한액 자체를 구하는 과정을 작성해야한다는..
[백준] #2512. 예산 (실버 2)
https://www.acmicpc.net/problem/2512import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int[] budget = new int[n]; StringTokenizer st = new StringTokenizer(br.readLine()); for (int i = 0; i 상한액 자체를 구하는 과정을 작성해야한다는..
2024.06.01