Problem list
Log in
#r03220 · Online Judge > GoldOJ

Numbers Greater Than X

Bronze III 2.0 s 256 MB

Given $N$ integers and then a threshold $X$, print (in input order, space-separated) those integers strictly greater than $X$. If none qualify, print nothing.

Input

Line 1: $N$. Line 2: $N$ integers. Line 3: $X$. All in $[-10000, 10000]$.

Output

Print the integers greater than $X$, in input order.

Example 1

Input
5
10 25 7 30 15
15
Output
25 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