21682_Conflic

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

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

Pro.ID

21682

Title

Conflict

Title链接

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

AC

0

Submit

0

Ratio

-

时间&空间限制

  • Time Limit: 2000/1000 MS (Java/Others)     Memory Limit: 65536/32768 K (Java/Others)
  • 描述

    Given several formula like "variable1  relation  variable2", where relation may be <, <=, =, !=, >=, >, variables may contain up to 10 letters or digits and are case-sensitive. Please determine whether there is a conflict.

    输入

    There are several cases. Each case begins with a line "Case%n:" (%n is the case number), and contains several formulas, one per line. There are no more than 100 formulas for each case. Please see sample input for more details. Input is terminated by EOF.

    输出

    Description

    Given several formula like "variable1  relation  variable2", where relation may be <, <=, =, !=, >=, >, variables may contain up to 10 letters or digits and are case-sensitive. Please determine whether there is a conflict.

    Input

    There are several cases. Each case begins with a line "Case%n:" (%n is the case number), and contains several formulas, one per line. There are no more than 100 formulas for each case. Please see sample input for more details. Input is terminated by EOF.

    Output

    If there is no conflict, output "YES", otherwise, output "NO". Please refer to sample output for the exact output format.

    Sample Input

    Case1:
    xyz < 123
    123 < 45
    Case2:
    x < y
    y < x

    Sample Output

    Case1: YES
    Case2: NO

    Source

    样例输入

    Case1:
    xyz < 123
    123 < 45
    Case2:
    x < y
    y < x

    样例输出

    Case1: YES
    Case2: NO

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部