백준2353 [백준/파이썬] 31868번 Skaičiai -Codefrom itertools import permutationsnums = list(map(int, input().split()))n = int(input())arr = []for i in permutations(nums, 3): arr.append(int("".join(map(str, [*i]))))arr.sort()print(arr.index(n) + 1) 2024. 5. 23. [백준/파이썬] 31868번 수박 게임 -Coden, k = map(int, input().split())print(k // (2 ** (n - 1))) 2024. 5. 22. [백준/파이썬] 31867번 홀짝홀짝 -Codeodd, even = 0, 0n = int(input())for n in input(): if int(n) % 2 != 0: odd += 1 else: even += 1if odd even: print(1)else: print(-1) 2024. 5. 21. [백준/파이썬] 23925번 Retype -Codefor i in range(1, int(input()) + 1): n, k, s = map(int, input().split()) print(f"Case #{i}: {n + k + min(0, k - s * 2)}") 2024. 5. 20. [백준/파이썬] 25642번 젓가락 게임 -Codea, b = map(int, input().split())while True: b += a if b >= 5: print("yt") break a += b if a >= 5: print("yj") break 2024. 5. 19. [백준/파이썬] 5163번 Isn’t It Funny How a Bear Likes Honey? -Codefrom math import pifor t in range(1, int(input()) + 1): b, w = map(float, input().split()) total = 0 for _ in range(int(b)): total += (4 / 3) * pi * (float(input()) ** 3) / 1000 print(f"Data Set {t}:") print("Yes" if w 2024. 5. 18. 이전 1 ··· 42 43 44 45 46 47 48 ··· 393 다음