언어, 알고리즘 공부/백준2020. 2. 11. 17:10[백준 알고리즘] 2884번 알람 시계(Python3, Java)
h, m = input().split() h, m = int(h), int(m) if m0: h -= 1 else: #h==0인경우 h = 23 m = 60-(45-m) else: m = m-45 print(h, m) import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class b_2884 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System..