본문 바로가기 메뉴 바로가기

강경하다

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

강경하다

검색하기 폼
  • 분류 전체보기 (141)
    • iOS (27)
    • Swift (39)
    • Swift Playground (14)
    • Design Pattern (5)
    • TDD (3)
    • CleanCode (2)
    • Algorithm (40)
    • Git (5)
    • CS Basic (4)
    • SoOn (0)
    • Review (2)
  • 방명록

Algorithm (40)
swift 백준 14681

let coordinatesX = Int(readLine()!)! let coordinatesY = Int(readLine()!)! if coordinatesX > 0 { if coordinatesY > 0 { print(1) } else { print(4) } } else if coordinatesX 0 { print(2) } else { print(3) } } 알고리즘 보다 1,2,3,4 사분면이 어느쪽이었는지 복습할 수 있었다 ㅋㅋㅋㅋ www.acmicpc.net/problem/14681 14681번: 사분면 고르기 점 (x, y)의 사분면 번호(1, 2, 3, 4 중 하나)를 출력한다. www.acmicpc.net

Algorithm 2020. 12. 24. 00:29
swift 백준 2753

let inputNum = Int(readLine()!)! if (inputNum % 4) == 0 { if (inputNum % 100) == 0 && (inputNum % 400) != 0 { print(0) } else { print(1) } } else { print(0) } 알고리즘 보단 윤년의 개념에 대해 더 자세히 알게된다! ㅋㅋㅋ www.acmicpc.net/problem/2753 2753번: 윤년 연도가 주어졌을 때, 윤년이면 1, 아니면 0을 출력하는 프로그램을 작성하시오. 윤년은 연도가 4의 배수이면서, 100의 배수가 아닐 때 또는 400의 배수일 때이다. 예를 들어, 2012년은 4의 배수이면서 www.acmicpc.net

Algorithm 2020. 12. 23. 15:41
swift 백준 9498

let inputNum = Int(readLine()!)! if 90

Algorithm 2020. 12. 23. 15:36
이전 1 ··· 6 7 8 9 10 11 12 ··· 14 다음
이전 다음
250x250
TAG
  • 백준
  • Network
  • for문
  • Method
  • basic
  • closure
  • flow control
  • URLSession
  • loop
  • 미완성
  • 입출력과 사칙연산
  • tdd
  • 코딩배우기2
  • Playground
  • CLASS
  • xcode
  • 코딩배우기1
  • protocol
  • algorithm
  • swift playground
  • Design Pattern
  • IOS
  • IF문
  • 1차원 배열
  • Swift
  • while문
  • structure
  • 테스트주도개발
  • GIT
  • function
more
최근에 올라온 글
링크
  • Gmail
  • Instagram
  • Github
Total
Today
Yesterday

Blog is powered by Tistory / Designed by Tistory

티스토리툴바