OpenJudge 02:Output the second integer

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 02:Output the second integer

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

Author
Hsukqi Lee
Posted on

2022-02-19

Edited on

2022-08-04

Licensed under

CC BY-NC-ND 4.0

# Programing  Cpp  OpenJudge  NOI  NOIP

Comments

Name
Mail
Site
None yet