Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
djmin43 committed Jul 29, 2023
1 parent 4d91518 commit 7dde5fd
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 6 additions & 0 deletions doit-algo/.idea/jpa-buddy.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions doit-algo/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,46 @@
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

@SpringBootApplication
public class JpaBasicApplication {

public static void main(String[] args) {
SpringApplication.run(JpaBasicApplication.class, args);
// SpringApplication.run(JpaBasicApplication.class, args);

Scanner scan = new Scanner(System.in);


String[] input = scan.nextLine().split(" ");
int m = Integer.parseInt(input[0]);
int n = Integer.parseInt(input[0]);


List<String> answerList = new ArrayList<>();

for (int i = 1; i <= m; i ++) {
List<String> lineList = new ArrayList<>();
for (int j = 1; j <= n; j ++) {
// odd
if (i % 2 != 0) {
lineList.a("#");
// even
} else {
lineList.push(".");
}
}
answerList.push(lineList);
}


String tt = answerList.toString();
System.out.println(tt);



}

}

0 comments on commit 7dde5fd

Please sign in to comment.