Submeter | Todas submissőes | Melhores | Voltar |
Problem hidden
SMPDIV - Divisibility |
Print all integers ai such that ai is divisible by x and not divisible by y, where 1 < ai < n < 100000.
Input
First, you are given t (t < 100) - the number of test cases. In each of the following t lines, 3 integers: n x y.
You might assume also that x < n and x is not divisible by y.
Output
In each of the following t lines, numbers requested in the problem description in the separated by a single space in ascending order.
Example
Input: 2 7 2 4 35 5 12 Output: 2 6 5 10 15 20 25 30
Adicionado por: | kuszi |
Data: | 2013-08-26 |
Tempo limite: | 1s |
Tamanho do fonte: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Linguagem permitida: | Todas exceto: ASM64 CLOJURE ERL FSHARP PERL6 PY_NBC SCALA TCL |