목록PS/Python (269)
지나가던 개발자

games = {"Y": 1, "F": 2, "O": 3} n, game = input().split() nicknames = [] for i in range(int(n)): nicknames.append(input()) print(len(set(nicknames)) // games[game]) 별 생각 안하고 임스가 한 번 플레이한 사람하고는 플레이하지 않으니까 그냥 몫을 구하면 되겠다 하고 했는데 이게 왜 맞지..?

from datetime import datetime youngest = ["", datetime.strptime("1990 01 01", "%Y %m %d")] oldest = ["", datetime.strptime("2010 12 31", "%Y %m %d")] for i in range(int(input())): nameAndBirth = input() name = nameAndBirth.split()[0] birth = datetime.strptime(" ".join(nameAndBirth.split()[1:]), "%d %m %Y") if birth = youngest[1]: youngest[0] = name youngest[1] = birth print(youngest[0]) print(ol..

while True: pw = input() if pw == "end": break if "a" not in pw and "i" not in pw and "u" not in pw and "e" not in pw and "o" not in pw: print(" is not acceptable.") continue if "aa" in pw or "bb" in pw or "cc" in pw or "dd" in pw or "eee" in pw or "ff" in pw or "gg" in pw or "hh" in pw or "ii" in pw or "jj" in pw or "kk" in pw or "ll" in pw or "mm" in pw or "nn" in pw or "ooo" in pw or "pp" in ..

for i in range(int(input())): print("Case #%d:"%(i+1), " ".join(list(reversed(input().split(" ")))))

from string import ascii_uppercase for i in range(int(input())): tc = [x for x in list(input().upper().replace(" ", "")) if x in list(ascii_uppercase)] if set(tc) == set(ascii_uppercase): triple_pangram = True double_pangram = True pangram = True for j in set(tc): if tc.count(j) >= 3: continue elif tc.count(j) == 2: triple_pangram = False elif tc.count(j) == 1: double_pangram = False if triple_p..

names = [] for i in range(int(input())): names.append(input()) if sorted(names) == names: print("INCREASING") elif sorted(names, reverse=True) == names: print("DECREASING") else: print("NEITHER")

rate = 0 scoreSum = 0 rating = {"A+": 4.5, "A0": 4.0, "B+": 3.5, "B0": 3.0, "C+": 2.5, "C0": 2.0, "D+": 1.5, "D0": 1.0, "F": 0.0} for i in range(20): subject, score, grade = input().split() if grade == "P": continue rate += float(score) * rating[grade] scoreSum += float(score) print(rate/scoreSum)