Multiples

Write a program that given a sequence of integers, computes the number
of times a sequence element is a multiple of the previous one.

Input

A sequence of integers.

Output

The number of times that a sequence element is multiple of the previous
one.

Warning

The program is allowed to use variables only of types int and bool.
Programs using variables of any other type will be graded with 0.

Problem information

Author: ProAl

Generation: 2026-01-25T16:25:17.678Z

© Jutge.org, 2006–2026.
https://jutge.org
