Skip to content

Commit ec609d7

Browse files
committed
1013
1 parent b9e65ca commit ec609d7

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

.idea/modules.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BOJ/gold/BOJ11058/BOJ11058.iml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
</component>
11+
</module>

BOJ/gold/BOJ11058/src/Main.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import java.util.Scanner;
2+
3+
public class Main {
4+
public static void main(String[] args) {
5+
Scanner sc = new Scanner(System.in);
6+
int N = sc.nextInt();
7+
int[] dp = new int[N + 1];
8+
for (int i = 0; i < dp.length; i++) {
9+
dp[i] = i;
10+
}
11+
if (N <= 6) {
12+
System.out.println(N);
13+
} else {
14+
for (int i = 1; i < dp.length; i++) {
15+
for (int j = 1; j < i; j++) {
16+
17+
}
18+
}
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)