Monday, November 18, 2019

URI 2060:: SOLUTION

URI Online Judge | 2060

Bino's Challenge

Bino and Cino are close friends. Bino likes to create mathematical challenges to Cino. This time, Bino created a list of numbers and asked to Cino: How many numbers are multiples of 234 and 5?
This challenge looks simple, but when the list contains many numbers, Cino makes some miscalculations. To help Cino, make a program to solve the Bino's Challenge.

Input

The first line of input consists of an integer (1 ≤ N ≤1000), representing the amount of numbers in the Bino's list.
The second line contains N integers Li (1 ≤ Li ≤ 100), representing the numbers of the Bino's list.

Output

Print the amount of multiples of 234 and 5 in the list. Note the formatting of the output in the output sample, because it must be followed strictly. "Multiplo(s)" means "Multiple(s)" in English, but you must print the message in Portuguese.
Input SampleOutput Sample
5
2 5 4 20 10
4 Multiplo(s) de 2
0 Multiplo(s) de 3
2 Multiplo(s) de 4
3 Multiplo(s) de 5



[WAIT]
     First of all, think yourself that you have tried enough for the problem. If you did not please read the program once. REMEMBER one thing, just believe in yourself.....YOU CAN.....YOU KNOW....



See the ANSWER here...

No comments:

Post a Comment