#3551. Hard Calculation

0
    ID: 3551 传统题 2000ms 1024MiB 尝试: 3 已通过: 1 难度: 1 上传者: 标签>AtCoderabc229BGESP 2级枚举(单层循环)数位拆分

Hard Calculation

Hard Calculation

题目描述

You are given positive integers AA and BB.
Let us calculate A+BA+B (in decimal). If it does not involve a carry, print EasyEasy; if it does, print HardHard.

输入格式

Input is given from Standard Input in the following format: AA BB

输出格式

If the calculation does not involve a carry, print EasyEasy; if it does, print HardHard.

229 390
Hard
123456789 9876543210
Easy

提示

AA and BB are integers. 1≤A,B≤10181 \le A,B \le 10^{18}When calculating 229+390229+390, we have a carry from the tens digit to the hundreds digit, so the answer is HardHard.
We do not have a carry here; the answer is EasyEasy.
Note that the input may not fit into a 3232-bit integer.

标签: AtCoder|abc229B

来源

AtCoder|abc229B