#2747. Programming Education

0

Programming Education

Programming Education

题目描述

In 20202020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education.
One day, there was an exam where a one-year-old child must write a program that prints HelloWorldHello World, and a two-year-old child must write a program that receives integers A,BA, B and prints A+BA+B.
Takahashi, who is taking this exam, suddenly forgets his age.
He decides to write a program that first receives his age NN (11 or 22) as input, then prints HelloWorldHello World if N=1N=1, and additionally receives integers A,BA, B and prints A+BA+B if N=2N=2.
Write this program for him.

输入格式

Input is given from Standard Input in one of the following formats:
1

2 AA BB

输出格式

If N=1N=1, print HelloWorldHello World; if N=2N=2, print A+BA+B.

1
Hello World
2
3
5
8

提示

NN is 11 or 22. AA is an integer between 11 and 99 (inclusive). BB is an integer between 11 and 99 (inclusive).As N=1N=1, Takahashi is one year old. Thus, we should print HelloWorldHello World.
As N=2N=2, Takahashi is two years old. Thus, we should print A+BA+B, which is 88 since A=3A=3 and B=5B=5.

标签: AtCoder|abc112A

来源

AtCoder|abc112A