Dice Pairs (2) X49147


Statement
 

pdf   zip

html

We want to run several experiments like those of the problem Dice Pairs (1).

In each experiment, we have been throwing a pair of dice repeatedly, recording the outcome.

Write a program that, for each of the experiments in a series of them, reads the sequence of outcomes of the experiment and prints out the histogram, under the same conditions as in Dice Pairs (1).

Input

Input is a sequence of experiments. Each experiment consists of the outcomes of the corresponding dice throws. The end of the data for each single experiment is indicated by a zero.

Output

Print the successive histograms corresponding to the successive experiments. After each histogram, print a line with five dashes.

Public test cases
  • Input

    7 5 4 5 8 8 4 8 8 7 0
    9 7 7 9 9 8 10 
    9 8 8 4 5 4 8 
    5 6 5 9 8 7 0
    6 8 12 5 0
    

    Output

    4: 2
    5: 2
    7: 2
    8: 4
    -----
    4: 2
    5: 3
    6: 1
    7: 3
    8: 5
    9: 5
    10: 1
    -----
    5: 1
    6: 1
    8: 1
    12: 1
    -----
    
  • Information
    Author
    José Luis Balcázar
    Language
    English
    Official solutions
    Python
    User solutions
    Python