목록코테 (2)
오늘도 한 뼘 더

최근 코딩테스트를 한번 보고 나의 실력에 상당한 충격을 받아 프로그래머스를 오랜만에 켰는데 기초부터 하나씩 데일리로 할 수 있는 게 있길래 시작해 본다!파이썬 다시 되짚을 겸 기초부터 하나씩 시작!## Github 링크https://github.com/baekji919/programmers/tree/main/Day1 programmers/Day1 at main · baekji919/programmersContribute to baekji919/programmers development by creating an account on GitHub.github.com
Algorithm/프로그래머스
2024. 7. 12. 13:31

# 문제 https://www.acmicpc.net/problem/2525 2525번: 오븐 시계 첫째 줄에 종료되는 시각의 시와 분을 공백을 사이에 두고 출력한다. (단, 시는 0부터 23까지의 정수, 분은 0부터 59까지의 정수이다. 디지털 시계는 23시 59분에서 1분이 지나면 0시 0분이 된다.) www.acmicpc.net # 입력 예제 14 30 20 # 출력 예제 14 50 # 코드 package main import "fmt" func main() { var a, b, c int fmt.Scanln(&a, &b) fmt.Scan(&c) b = b + c if b >= 60 { a = a + b/60 b = b % 60 if a > 23 { a = a - 24 fmt.Print(a, b) }..
Algorithm/백준 알고리즘
2022. 4. 12. 23:03