Potenze di 2
Dato un numero intero positivo n, il tuo compito è trovare tutte le potenze di 2 che non superano n.
Input | Output |
|---|---|
51 | 1 2 4 8 16 32 |
Constraints
Time limit: 1.6 seconds
Memory limit: 512 MB
Output limit: 1 MB
Dato un numero intero positivo n, il tuo compito è trovare tutte le potenze di 2 che non superano n.
Input | Output |
|---|---|
51 | 1 2 4 8 16 32 |
Time limit: 1.6 seconds
Memory limit: 512 MB
Output limit: 1 MB