Skip to content

Commit ad06cab

Browse files
committed
[D1] Title: 연월일 달력, Time: 76 ms, Memory: 25,472 KB -BaekjoonHub
1 parent e89672a commit ad06cab

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

SWEA/D1/2056. 연월일 달력/README.md

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

55
### 성능 요약
66

7-
메모리: 25,728 KB, 시간: 83 ms, 코드길이: 1,345 Bytes
7+
메모리: 25,472 KB, 시간: 76 ms, 코드길이: 1,342 Bytes
88

99
### 제출 일자
1010

11-
2025-09-26 01:10
11+
2025-09-26 01:15
1212

1313

1414

SWEA/D1/2056. 연월일 달력/연월일 달력.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ public static void main(String args[]) throws Exception
2626
for(int i=1; i<=T; i++){
2727
String s = br.readLine();
2828

29-
String year = s.substring(0, 4);
29+
String year = s.substring(0,4);
3030
String month = s.substring(4,6);
3131
String day = s.substring(6,8);
3232

3333
if(!checkMonth(Integer.parseInt(month))){
34-
sb.append("#"+i +" "+-1+"\n");
34+
sb.append("#"+i +" -1"+"\n");
3535
continue;
3636
}if(!checkDay(Integer.parseInt(month), Integer.parseInt(day))) {
37-
sb.append("#"+i +" "+-1+"\n");
37+
sb.append("#"+i +" -1"+"\n");
3838
continue;
3939
}
4040

0 commit comments

Comments
 (0)