diff --git a/sep037/README.md b/sep037/README.md index 9b095df..fb87643 100644 --- a/sep037/README.md +++ b/sep037/README.md @@ -1,6 +1,9 @@ -## ✏️ 기록 +## ✏️ 기록 + +스크린샷 2025-04-05 14 43 30 + | 차시 | 날짜 | 문제유형 | 링크 | 풀이 | |:----:|:---------:|:----:|:-----:|:----:| -| 1차시 | 2024.10.01 | 구현 | [추억 점수](https://school.programmers.co.kr/learn/courses/30/lessons/176963)|https://github.com/AlgoLeadMe/AlgoLeadMe-1/pull/35| +| 1차시 | 2025.04.05 | 구현 | [숫자 정사각형](https://www.acmicpc.net/problem/1051)|https://github.com/AlgoLeadMe/AlgoLeadMe-14/pull/6| --- diff --git "a/sep037/\352\265\254\355\230\204/BOJ_1051.swift" "b/sep037/\352\265\254\355\230\204/BOJ_1051.swift" new file mode 100644 index 0000000..815a19c --- /dev/null +++ "b/sep037/\352\265\254\355\230\204/BOJ_1051.swift" @@ -0,0 +1,49 @@ +// +// main.swift +// 1051 +// +// Created by Seungeun Park on 4/5/25. +// + +import Foundation + +let firstLine = readLine()!.split(separator: " ").map {Int($0)!} +let n = firstLine[0] // 행 +let M = firstLine[1] // 열 + +var grid: [[Int]] = [] // 추가해야 하니까 var +for _ in 0.. Int { + let n = grid.count + let m = grid[0].count + var maxLength = 1 + + for i in 0..