#abc229b. B - Hard Calculation
B - Hard Calculation
Score : points
问题描述
给定两个正整数 和 。
让我们计算 (以十进制表示)。如果不产生进位,则输出 Easy
;如果产生进位,则输出 Hard
。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given positive integers and .
Let us calculate (in decimal). If it does not involve a carry, print Easy
; if it does, print Hard
.
Constraints
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
If the calculation does not involve a carry, print Easy
; if it does, print Hard
.
Sample Input 1
229 390
Sample Output 1
Hard
When calculating , we have a carry from the tens digit to the hundreds digit, so the answer is Hard
.
Sample Input 2
123456789 9876543210
Sample Output 2
Easy
We do not have a carry here; the answer is Easy
.
Note that the input may not fit into a -bit integer.
update @ 2024/3/10 10:00:53