파이썬2187 [백준/파이썬] 32951번 AI 선도대학 -Codeprint(int(input()) - 2024) 2024. 12. 23. [백준/파이썬] 31260번 ПРАВОЪГЪЛНИК -Codex, y = map(int, input().split())d = int(input())total = x * 100 + ybig = (total / 4) + (d / 2)small = (total / 4) - (d / 2)print(f"{int(big // 100)} {int(big % 100)}")print(f"{int(small // 100)} {int(small % 100)}") 2024. 12. 22. [백준/파이썬] 30841번 Ложки -Codea, b = map(int, input().split())print((a * b) // (a + b) if a + b > 0 else 0) 2024. 12. 21. [백준/파이썬] 32500번 Dishonest Lottery -Codefrom collections import defaultdictlottery = defaultdict(int)n = int(input())for _ in range(n * 10): nums = list(map(int, input().split())) for num in nums: lottery[num] += 1res = [num for num, cnt in lottery.items() if cnt > n * 2]if res: print(" ".join(map(str, sorted(res))))else: print(-1)출력을 *sorted(res)로 했더니 타입 에러가 생겨서 join을 통해 출력하니 해결이 되었습니다. 2024. 12. 20. [백준/파이썬] 25084번 Infinity Area -Codefrom math import pifor t in range(1, int(input()) + 1): r, a, b = map(int, input().split()) res = 0 while r > 0: res += pi * (r ** 2) r *= a res += pi * (r ** 2) r //= b print(f"Case #{t}: {res:.6f}") 2024. 12. 19. [백준/파이썬] 32969번 학술대회 참가신청 -Codes = input()digital = ["social", "history", "language", "literacy"]for el in digital: if el in s: print("digital humanities") exit()print("public bigdata") 2024. 12. 18. 이전 1 ··· 6 7 8 9 10 11 12 ··· 365 다음