Algorithm89 [백준] 2530번 인공지능 시계 엄청난 양의 초가 입력될 수 있음을 고려하고 풀어야됨.. h, m, s = map(int, input().split()) second = int(input()) s += second if s >= 60: m += s // 60 s = s % 60 if m >= 60: h += m // 60 m = m % 60 if h >= 24: h = h % 24 print(h, m, s) 2020. 10. 20. [백준] 2476번 주사위 게임 어씨 성능 개선하다가 잘 못 생각해서 꼬였었당... import sys N = int(sys.stdin.readline()) ans = 0 for i in range(N): temp = 0 dice = list(map(int, sys.stdin.readline().split())) dice.sort() front = dice[0] back = dice[1] if back > front: front = back x = dice.count(front) if x == 3: temp = 10000 + front * 1000 if x == 2: temp = 1000 + front * 100 if dice[0] != dice[1] != dice[2]: temp = max(dice) * 100 if ans < tem.. 2020. 10. 20. [백준] 4101번 크냐? 큰 듯..ㅎ import sys while 1: x, y = map(int, sys.stdin.readline().split()) if x == y == 0: break if x > y: print("Yes") else: print("No") 2020. 10. 20. [백준] 2525번 오븐 시계 껄껄.. hour, minTime = map(int, input().split()) minute = int(input()) minTime += minute if minTime >= 60: x, y = divmod(minTime, 60) hour += x minTime = y if hour >= 24: hour -= 24 print(hour, minTime) 2020. 10. 20. 이전 1 ··· 8 9 10 11 12 13 14 ··· 23 다음