OpenJudge 1.1编程基础之输入输出 02:输出第二个整数

Description

Enter three integers and output the second input integer.

Input

There are only one line, a total of three integers, and an integer is separated by a space. The integer is a 32 - bit symbolic integer.

OUTPUT

There is only one line, one integer, that is, the second integer input.

Input Sample

123 456 789

OUTPUT SAMPLE

456

source

Exercise (2-1)

idea

Read into three variables and output the second variable.

Answer

CPP

include

using namespace std;
int Main ()
{{
int a, b, c;
cin >> a >> b >> c;
COUT << b;
Return 0;
}

Result

Used Memory: 200KB
Run time: 10ms
Language: G ++
Submit time: 2019-03-24 08:56:36

[http://noi.openjudge.cn/ch0101/02/02/.

OpenJudge 1.1编程基础之输入输出 02:输出第二个整数

https://blog.tsinbei.com/archives/186/

文章作者
Hsukqi Lee
发布于

2022-02-19

修改于

2022-07-28

许可协议

CC BY-NC-ND 4.0

# 编程  Cpp  OpenJudge  NOI  NOIP

评论

昵称
邮箱
网址
暂无