Skip to content

Commit dfabb55

Browse files
committed
[Silver II] Title: 색종이 만들기, Time: 156 ms, Memory: 17244 KB -BaekjoonHub
1 parent 8f083cd commit dfabb55

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

백준/Silver/2630. 색종이 만들기/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
### 성능 요약
66

7-
메모리: 17508 KB, 시간: 160 ms
7+
메모리: 17244 KB, 시간: 156 ms
88

99
### 분류
1010

1111
분할 정복, 재귀
1212

1313
### 제출 일자
1414

15-
2025년 7월 10일 17:40:42
15+
2025년 7월 10일 17:42:14
1616

1717
### 문제 설명
1818

백준/Silver/2630. 색종이 만들기/색종이 만들기.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
2-
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
3-
41
import java.io.*;
52

63
public class Main {
@@ -30,12 +27,13 @@ public static void check(int x, int y, int n){
3027

3128
boolean isSame = true;
3229
int color = square[x][y]; // 시작 원소를 기준점으로 잡는다
33-
30+
31+
loop:
3432
for(int i=x; i<x+n; i++){
3533
for(int j=y; j<y+n; j++){
3634
if(square[i][j] != color){
3735
isSame=false;
38-
break;
36+
break loop;
3937
}
4038
}
4139
}

0 commit comments

Comments
 (0)