백준 4358 - 생태학


백준 4358 - 생태학

123456789101112131415import sysfrom collections import defaultdict cnt = 0tree = defaultdict(int)while True: tmp = sys.stdin.readline().rstrip() if not tmp: break tree[tmp] += 1 cnt += 1 tree = sorted(tree.items())for name, num in tree: print("%s %.4f" % (name,num/cnt*100))cs...

백준 4358 - 생태학에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.



원문링크 : 백준 4358 - 생태학