시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 525 155 144 41.860%

문제

일벌이 하는 일은 다음과 같이 분류할 수 있다.

휴식(Re), 순찰(Pt), 방청소(Cc), 꽃가루 먹기(Ea), 새끼 돌보기(Tb), 벌집 짓기와 관리(Cm), 외부 활동(Ex)

한 꿀벌이 1시간동안 한 일이 주어졌을 때, 각각을 몇 번했고, 비율이 어떻게 되는지 구하는 프로그램을 작성하시오.

입력

입력은 일벌이 한 일이 공백과 줄바꿈으로 구분되어서 주어진다. 최대 24개의 일을 한다.

출력

각각의 일을 한 횟수와 비율을 공백으로 구분하여 출력한다. 출력은 {Re,Pt,Cc,Ea,Tb,Cm,Ex} 순서대로 하며, 비율은 소수점 둘쨰자리까지 출력한다. 주어진 목록에 없는 일은 출력하지 않는다.

입력의 마지막 줄에는 "Total <total> 1.00"을 출력하며, <total>은 일벌이 한 일의 개수이다.

예제 입력 1

Cc Pt Pt Re Tb Re Cm Cm Re Pt Pt Re Ea Ea Pt Pt
Pt Re Re Cb Cb Pt Pt Cb

예제 출력 1

Re 6 0.25
Pt 9 0.38
Cc 1 0.04
Ea 2 0.08
Tb 1 0.04
Cm 2 0.08
Ex 0 0.00
Total 24 1.00
W3sicHJvYmxlbV9pZCI6Ijk3MzMiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWFmYzBcdWJjOGMiLCJkZXNjcmlwdGlvbiI6IjxwPlx1Yzc3Y1x1YmM4Y1x1Yzc3NCBcdWQ1NThcdWIyOTQgXHVjNzdjXHVjNzQwIFx1YjJlNFx1Yzc0Y1x1YWNmYyBcdWFjMTlcdWM3NzQgXHViZDg0XHViOTU4XHVkNTYwIFx1YzIxOCBcdWM3ODhcdWIyZTQuPFwvcD5cclxuXHJcbjxwPlx1ZDczNFx1YzJkZChSZSksIFx1YzIxY1x1Y2MzMChQdCksIFx1YmMyOVx1Y2NhZFx1YzE4YyhDYyksIFx1YWY0M1x1YWMwMFx1YjhlOCBc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