본문 바로가기

김경록의 앱 개발 여정

검색하기
김경록의 앱 개발 여정
프로필사진 Kim Roks

  • 분류 전체보기 (85)
    • TIL (32)
    • Algorithm (41)
    • Trouble Shooting (12)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/03   »
일 월 화 수 목 금 토
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
Tags
  • DP
  • swift bottomsheet
  • RxSwift
  • identifiable
  • swift navigationcontroller
  • traits
  • BFS
  • domain data
  • swift custom ui
  • SWIFT
  • custom navigation bar
  • reactorkit
  • scene delegate
  • swift 점선
  • swift concurrency
  • swift dashed line
  • custom ui
  • 타임라인 포맷팅
  • custombottomsheet
  • Tuist
  • coordinator
  • UIKit
  • swift 백준
  • 버튼 피드백
  • task cancel
  • rxdatasources
  • claen architecture
  • button configuration
  • uikit toast
  • task cancellation
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록2025/03/25 (1)

김경록의 앱 개발 여정

[Swift 백준] 1303 전쟁 - 전투

https://www.acmicpc.net/problem/1303 풀이 아이디어그래프 탐색문제입니다.적군과 아군의 경우 모두 조사해야합니다.매번 bfs로 탐색하여 결과값의 제곱만큼 += 해주어 결과를 출력합니다.자세한 풀이는 아래와 같습니다. 풀이let nm = readLine()!.split(separator: " ").map { Int($0)! }let (m, n) = (nm[0], nm[1])let dn = [0, 0, -1, 1]let dm = [-1, 1, 0, 0]var graph = [[String]]()var isVisited = Array(repeating: Array(repeating: false, count: m), count: n)var whiteCount = 0var blueCou..

Algorithm 2025. 3. 25. 18:16
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바