Skip to content

Commit

Permalink
Create S4_13699
Browse files Browse the repository at this point in the history
  • Loading branch information
RangKoon authored Jul 9, 2024
1 parent 3cae983 commit abde7c3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions 진민혁/S4_13699
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import java.util.*;
import 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());
long[] arr = new long[n+1];
arr[0] = 1;
for(int i=1; i<=n; i++) {
int t = 0;
for(int j=i-1; j>=0; j--) {
arr[i] += arr[t] * arr[j];
t ++;
}
}
System.out.println(arr[n]);
}
}











0 comments on commit abde7c3

Please sign in to comment.