6198
-
[백준] 6198 옥상 정원 꾸미기 #JAVAAlgorithm Solving/BAEKJOON 2021. 1. 31. 00:10
BAEKJOON [6198] 옥상 정원 꾸미기 코드 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Stack; 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()); long result = 0;// (1+80000) /2 * 80000 > Integer.MAX_VAL..