ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Сборники > Kovrov IT > задача:


51197 - Even and odd Numbers

Задачи сборника

• 50594 - Transformimet
• 50653 - Pjesetimi i gjate
• 50767 - Censura
• 50769 - Ku eshte Waldorf?
• 50792 - Studenti me mesataren me...
• 51182 - Count and Sum 2
• 51193 - The max element of k-th co...
• 51196 - The sum of two arrays
• 51197 - Even and odd Numbers
• s
• s
• 010. 50381 - Sum of the numbers
• 030. 50737 - Sum of the k-largest n...
• 060. 50389 - Reverse an Array
• 100. 50330 - Find the average of n ...
• 110. 50359 - Mode of a Series
• 120. 50331 - Number of Numbers o...

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
bfs.

Even and odd Numbers

You will be first given one number (n) which is followed by a series of integers (n space-separated values). Show even and odd numbers in two differnet lines.

Input specification
You will be given one integers (n) in the first line,   and 1 ≤ n ≤ 10.000. The second line contains a series of integer numbers a[n] where   0 < a[n] ≤ 1000.

Output specification
You will give two series, in the first line show all even numbers and in the secon line show all odd numbers seperated by space.

Sample Input I 
5
5 8 4 9 3

Sample Input II
7
4 10 8 5 8 9 7

Sample Output I
8 4
5 9 3

Sample Output II
4 10 8 8
5 9 7

 

Для отправки решений необходимо выполнить вход.

www.contester.ru