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

Разделы > Unsorted > задача:


50957 - Divisible by 3

Задачи раздела

• 50894 - ASCII Codes
• 50886 - Even or Odd
• 50897 - Prime Number
• 50910 - Flipping Coins
• 50950 - Biggest Number
• 50901 - Sum of Cubes-1
• 50975 - Cinema Tickets
• 50907 - Second Largest
• 50957 - Divisible by 3
• 50898 - Draw the Pattern
• 50959 - Draw the Pattern
• 50961 - Order of 3 Runner
• 50963 - Append Two Arrays
• 50893 - Print All Numbers
• 50968 - Number of Letters
• 50888 - Extracting Digits
• 50969 - Chef and Feedback

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

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

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

Divisible by 3

 

Write a program that gets N numbers and then counts and displays the number of numbers which are divisible by 3.


Input specification:

In the first line you will get an integer number N where 1 ≤ N ≤ 5000.

In the following line you will get N integer numbers separated by space.

 

Output specification:
Show the number of numbers which are divisible by 3.

 

Sample Input I   

Sample Input II  

4

6 4 3 5

5

2 7 5 11 19

Sample Output I   

Sample Output II

2

0

 

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

www.contester.ru