22648_Triathlon

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

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

Pro.ID

22648

Title

Triathlon

Title链接

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

AC

3

Submit

7

Ratio

42.86%

时间&空间限制

  • Time Limit: 1500/500 MS (Java/Others)     Memory Limit: 20000/10000 K (Java/Others)
  • 描述

    Triathlon is an athletic contest consisting of three consecutive sections that should be completed as fast as possible as a whole. The first section is swimming, the second section is riding bicycle and the third one is running. 

    The speed of each contestant in all three sections is known. The judge can choose the length of each section arbitrarily provided that no section has zero length. As a result sometimes she could choose their lengths in such a way that some particular contestant would win the competition.

    输入

    The first line of the input file contains integer number N ( 1 <= N <= 100 ), denoting the number of contestants. Then N lines follow, each line contains three integers Vi, Ui and Wi ( 1 <= Vi, Ui, Wi <= 10000 ), separated by spaces, denoting the speed of ith contestant in each section.

    输出

    Description
    Triathlon is an athletic contest consisting of three consecutive sections that should be completed as fast as possible as a whole. The first section is swimming, the second section is riding bicycle and the third one is running. 

    The speed of each contestant in all three sections is known. The judge can choose the length of each section arbitrarily provided that no section has zero length. As a result sometimes she could choose their lengths in such a way that some particular contestant would win the competition.
    Input
    The first line of the input file contains integer number N ( 1 <= N <= 100 ), denoting the number of contestants. Then N lines follow, each line contains three integers Vi, Ui and Wi ( 1 <= Vi, Ui, Wi <= 10000 ), separated by spaces, denoting the speed of ith contestant in each section.
    Output
    For every contestant write to the output file one line, that contains word "Yes" if the judge could choose the lengths of the sections in such a way that this particular contestant would win (i.e. she is the only one who would come first), or word "No" if this is impossible.
    Sample Input
    9
    10 2 6
    10 7 3
    5 6 7
    3 2 7
    6 2 6
    3 5 7
    8 4 6
    10 4 2
    1 8 7
    Sample Output
    Yes
    Yes
    Yes
    No
    No
    No
    Yes
    No
    Yes
    Source

    样例输入

    9
    10 2 6
    10 7 3
    5 6 7
    3 2 7
    6 2 6
    3 5 7
    8 4 6
    10 4 2
    1 8 7

    样例输出

    Yes
    Yes
    Yes
    No
    No
    No
    Yes
    No
    Yes

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部