File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed
Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments