[JAVA] 백준, 1003번 피보나치 함수
https://www.acmicpc.net/problem/1003 기존 피보나치 함수https://www.acmicpc.net/problem/10870import java.io.*;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()); Integer[] dp = new Integer[21]; System.out.println(fibonacci(n, dp)); ..
Algorithm/백준 - Java
2024. 6. 7. 11:11