[R42A]比较
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
时空限制
1S/512M
题目描述
给定一个长度为 的字符串,表示两个 之间整数的不等式。字符串格式保证为 x<y、x=y 或 x>y 其中之一( 为数字字符)。
请判断该字符串所表示的数学关系是否成立。
格式
输入格式
第一行包含一个长度为 的字符串 。
输出格式
如果表达式成立,输出 Yes;否则输出 No。
样例
样例输入 #1
1>2
样例输出 #1
No
样例解释 #1
不大于 ,故输出 No。
样例输入 #2
1<2
样例输出 #2
Yes
数据规模
对于 的数据,保证 的长度为 ,且只包含数字字符和 <、>、=。
字符串格式保证为 x<y、x=y 或 x>y 其中之一( 为数字字符)。
代码源挑战赛 Round 42
- Status
- Done
- Rule
- DMY
- Start at
- 2025-12-19 20:00
- End at
- 2025-12-19 21:30
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 440