Algorithm/Implementaion20 [백준] 2935번 소음 eval 함수를 쓰는게 포인트 오랜만이네 ㅋㅋㅋ ans = [] for _ in range(3): ans.append(input()) print(eval(ans[0] + ans[1] + ans[2])) 2020. 10. 20. [백준] 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. 이전 1 2 3 4 5 다음