백준2316 [백준/파이썬] 14471번 포인트 카드 -Coden, m = map(int, input().split())total = m - 1not_winning = []for _ in range(m): a, b = map(int, input().split()) if a >= n: total -= 1 else: not_winning.append(a)if total == 0: print(0)else: res = 0 for el in sorted(not_winning, reverse=True): res += n - el total -= 1 if total == 0: break print(res) 2024. 10. 13. [백준/파이썬] 30306번 Better Dice -Coden = int(input())first_dice = list(map(int, input().split()))second_dice = list(map(int, input().split()))res = 0for i in range(n): for j in range(n): if first_dice[i] > second_dice[j]: res += 1 elif first_dice[i] 0: print("first")elif res 2024. 10. 12. [백준/파이썬] 9443번 Arrangement of Contest -Codeal = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"input_arr = set([input()[0] for _ in range(int(input()))])res = 0for i in range(26): if al[i] not in input_arr: break res += 1 print(res) 2024. 10. 11. [백준/파이썬] 32288번 바코드 닉네임 -Coden = int(input())res = ""for word in input(): if word == "I": res += "i" else: res += "L"print(res) 2024. 10. 10. [백준/파이썬] 13773번 Olympic Games -Codewhile True: year = int(input()) if year == 0: break if 1896 2024. 10. 9. [백준/파이썬] 32498번 Call for Problems -Coderes = 0for _ in range(int(input())): n = int(input()) if n % 2 != 0: res += 1print(res) 2024. 10. 8. 이전 1 ··· 12 13 14 15 16 17 18 ··· 386 다음