Problem list
Log in
#r02976 · Online Judge > GoldOJ

Center the Sum

Bronze III 1.0 s 256 MB

Given two positive integers, print their sum centered in a field of width 7 inside square brackets, e.g. [ 30 ] (Python ^7 alignment).

Input

Two positive integers on one line.

Output

Print [ + the sum centered to width 7 + ].

Example 1

Input
10 20
Output
[  30   ]
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code