21803_HappyGirls

2022-5-16 18:20| 发布者: Hocassian| 查看: 26| 评论: 0|原作者: 肇庆学院ACM合集

摘要:
C:\Users\Administrator\Downloads\2019-10-12-10-14-4-89505862317800-Problem List-采集的数据-后羿采集器.html

Pro.ID

21803

Title

Happy Girls

Title链接

http://10.20.2.8/oj/exercise/problem?problem_id=21803

AC

9

Submit

119

Ratio

7.56%

时间&空间限制

  • Time Limit: 3000/3000 MS (Java/Others)     Memory Limit: 32768/32768 K (Java/Others)
  • 描述

    These days, Hunan TV host the big concert ? Happy Girls.

    Long1 and xinxin like it very much, they even use their cellphones to suppose the girl who they like most. This way is easy if you have enough money then you can make a contribution toward your lover.

    But sometimes, it also causes the problem of injustice. Those who has a lot of money can support their lover in every second. So now, we make a rule to restrict them ? every tel-number can just support once in one minute (i.e two messages should have difference bigger or equal 60s).

    As an exerllent programer, your mission is to count every Happy girl's result.

    输入

    There are many cases.

    For every case:

    The first line gives N, represents there are N happy gilrs numbered form 1 to N ( N ≤ 10 )

    Then many lines follows (no more than 50000), each line gives the time one sent his/her message, the cellphone number and the number he/she support. They are separated by space.

    The last line an message "#end".

    输出

    Description

    These days, Hunan TV host the big concert ? Happy Girls.

    Long1 and xinxin like it very much, they even use their cellphones to suppose the girl who they like most. This way is easy if you have enough money then you can make a contribution toward your lover.

    But sometimes, it also causes the problem of injustice. Those who has a lot of money can support their lover in every second. So now, we make a rule to restrict them ? every tel-number can just support once in one minute (i.e two messages should have difference bigger or equal 60s).

    As an exerllent programer, your mission is to count every Happy girl's result.

    Input

    There are many cases.

    For every case:

    The first line gives N, represents there are N happy gilrs numbered form 1 to N ( N ≤ 10 )

    Then many lines follows (no more than 50000), each line gives the time one sent his/her message, the cellphone number and the number he/she support. They are separated by space.

    The last line an message "#end".

    Output

    In every case, you print "The result is :", then N line follows.

    Each line begin with the Happy girls' number, then a colon, then a bunch of "*" follows, the number of the "*" are Happy girls' votes.

    Sample Input

    4
    0:12:25 13854241556 1
    0:15:52 15825422365 2
    0:15:56 15825422365 3
    0:18:55 13625415457 2
    11:12:2 13954215455 4
    5:41:55 13625415457 2
    #end

    Sample Output

    The result is :
    01 : *
    02 : ***
    03 :
    04 : *

    Source

    样例输入

    4
    0:12:25 13854241556 1
    0:15:52 15825422365 2
    0:15:56 15825422365 3
    0:18:55 13625415457 2
    11:12:2 13954215455 4
    5:41:55 13625415457 2
    #end

    样例输出

    The result is :
    01 : *
    02 : ***
    03 :
    04 : *

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部