OpenJudge 03:Align output

Description

Read the three integers, and output them on the right side by one integer with 8 characters.

Input

There are only one line, including three intestines, and separate between an integer.

OUTPUT

There is only one line that outputs three integers in turn according to the requirements of the format, and is separated by a space.

Input Sample

123456789 0 - 1

OUTPUT SAMPLE

123456789 0 - 1

source

Exercise (2-6)

idea

Read with scanf or cin and output with Printf or COUT.

Answer

CPP

include

include

using namespace std;
int Main ()
{{
int a, b, c;
cin >> a >> b >> c;
Printf (" %8d %8d %8d", a, b, c);
Return 0;
}

Result

Used Memory: 200KB
Run time: 5ms
Language: G ++
Submit time: 2019-03-24 08:54:24

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

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