Logo
(追記) (追記ここまで)

31368번 - #TheDress 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB104747070.707%

문제

After landing on planet i1c5l people noticed that blue and black clothes are quite popular among the locals. Each aboriginal has at least one blue-and-black piece of clothing in their wardrobe. This makes no interest except one curious detail: the locals claimed that these colors weren’t blue and black but white and gold.

Thus a simple test was created to differ a human being from an alien. On one of the wedding parties people took a picture of the blue-and-black groom mother’s dress. This picture was shown to some respondents who were asked the color of the dress. If the answer contained <<blue>> and <<black>> then there was no doubt that the respondent was from the Earth. The answer containing <<white>> and <<gold>> pointed to the person of planet i1c5l origin. If the answer contained neither of word pairs then it was clear that the respondent was a creature from another planet.

You have the complete survey log from planet i1c5l. Your task is to determine the constitution of the planet’s population based on the survey.

입력

The first line contains single integer $N$ --- the number of respondents (1ドル \le N \le 100$). The following $N$ lines contain the answers. No line is empty and no line is longer than 100 characters. The answer contains only lower-case Latin letters and spaces. It is guaranteed that no answer can contain <<blue>>, <<black>>, <<white>>, and <<gold>> simultaneously.

출력

Output three numbers that describe the planet’s population, each on separate line.

The first number --- percentage of earthlings in population.

The second number --- percentage of aboriginals in population.

The third number --- percentage of another planet creatures in population.

Output all numbers with 10ドル^{-5}$ accuracy.

제한

예제 입력 1

3
goldandwhite
white and pinkman
blueblueblue and a little bit black

예제 출력 1

33.3333333333
33.3333333333
33.3333333333

예제 입력 2

4
this dress is blue and black
this dress is goldblackblue
eto plate kazhetsia sirenevenkoe
no comments

예제 출력 2

50.0000000000
0.0000000000
50.0000000000

힌트

출처

Contest > Open Cup > 2014/2015 Season > Stage 11: Grand Prix of Tatarstan > Division 2 M번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /