시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 515 151 140 42.169%

문제

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

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

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

입력

입력은 일벌이 한 일이 공백과 줄바꿈으로 구분되어서 주어진다. 최대 24개의 일을 하며, {Re,Pt,Cc,Ea,Tb,Cm,Ex}로 이루어져 있다.

출력

각각의 일을 한 횟수와 비율을 공백으로 구분하여 출력한다. 출력은 {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
W3sicHJvYmxlbV9pZCI6Ijk3MzMiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWFmYzBcdWJjOGMiLCJkZXNjcmlwdGlvbiI6IjxwPlx1Yzc3Y1x1YmM4Y1x1Yzc3NCBcdWQ1NThcdWIyOTQgXHVjNzdjXHVjNzQwIFx1YjJlNFx1Yzc0Y1x1YWNmYyBcdWFjMTlcdWM3NzQgXHViZDg0XHViOTU4XHVkNTYwIFx1YzIxOCBcdWM3ODhcdWIyZTQuPFwvcD5cclxuXHJcbjxwPlx1ZDczNFx1YzJkZChSZSksIFx1YzIxY1x1Y2MzMChQdCksIFx1YmMyOVx1Y2NhZFx1YzE4YyhDYyksIFx1YWY0M1x1YW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