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
Proplem Link
[http://noi.openjudge.cn/ch0101/02/02/.
OpenJudge 02:Output the second integer
Comments