Even From End

3.3

17 votes
Easy
Problem

Problem Description

Given a list of integers, find and display all even numbers from the end of the list.

Input Format

Each line of input begins with an integer N indicating the number of integer n that follow which comprises a list.

Output Format

All even numbers from the end of the list, each separated by a single space. Separate output for each test case with the newline character. Otherwise, display the words None to display

Constraints

2N100

1000n1000

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?