파이썬2187 [백준/파이썬] 33046번 Alea Iacta Est -Codea, b = map(int, input().split())c, d = map(int, input().split())total = a + b + c + dres = 0for _ in range(total - 1): if res == 4: res = 1 continue res += 1print(res) 2024. 12. 29. [백준/파이썬] 28225번 Flower Festival -Coden, f = map(int, input().split())now_time, res = 1e9, 0for i in range(n): x, v = map(int, input().split()) time = (f - x) / v if now_time > time: now_time = time res = i + 1print(res) 2024. 12. 28. [백준/파이썬] 27246번 Различные квадраты -Coden = int(input())now, res = 1, 0while n >= now ** 2: n -= now ** 2 res += 1 now += 1print(res) 2024. 12. 27. [백준/파이썬] 23251번 스물셋 -Codefrom sys import stdinfor _ in range(int(stdin.readline())): print(int(stdin.readline()) * 23) 2024. 12. 26. [백준/파이썬] 24421번 掛け算 (Multiplication) -Coden = int(input())nums = list(map(int, input().split()))res = 0for i in range(n - 2): for j in range(i + 1, n - 1): for k in range(j + 1, n): if nums[i] * nums[j] == nums[k]: res += 1print(res) 2024. 12. 25. [백준/파이썬] 32941번 왜 맘대로 예약하냐고 -Codet, x = map(int, input().split())n = int(input())cnt = 0for _ in range(n): k = int(input()) a_list = list(map(int, input().split())) if x in a_list: cnt += 1print("YES" if cnt == n else "NO") 2024. 12. 24. 이전 1 ··· 5 6 7 8 9 10 11 ··· 365 다음