Divisibles per 3


Submit solution

Points: 10
Time limit: 5.0s
Memory limit: 256M

Author:
Problem types
Allowed languages
C#, Go, Java

Imprimeix tots els nombres enters divisibles per 3 que hi ha entre \(A\) i \(B\) (inclusiu).

Input Format

Dos nombres enters \(A\) i \(B\).

Constraints

\(B > A\)

Output Format

S'imprimirà cada número en una línia.

Test Case 1

Input
1 7
Output
3
6

Test Case 2

Input
5 10
Output
6
9

Test Case 3

Input
10 22
Output
12
15
18
21

Test Case 4

Input
3 7
Output
3
6

Test Case 5

Input
-1 3
Output
0
3

Test Case 6

Input
12 45
Output
12
15
18
21
24
27
30
33
36
39
42
45

Test Case 7

Input
99 102
Output
99
102

Test Case 8

Input
3 7
Output
3
6

Authorship: Gerard Falcó

CC BY-NC-SA 4.0