Pro.ID21682 TitleConflict Title链接http://10.20.2.8/oj/exercise/problem?problem_id=21682 AC0 Submit0 Ratio- 时间&空间限制描述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: Sample Output Case1: YES Source 样例输入Case1: 样例输出Case1: YES 作者 |