[pyar] Desafio PET 1
Roberto Alsina
ralsina en netmanagers.com.ar
Sab Ago 21 20:05:15 ART 2010
On Saturday 21 August 2010 18:36:23 Francisco Palm wrote:
> Ya tengo el script ganador!
>
> print{0:0,1:1,2:2,6:'2 x 3',11:11,17:17,42:'2 x 3 x 7',168:'2^3 x 3 x
> 7',1024:'2^10'}[input()]
>
> fpalm en mugen:~$ ./pet1-test.sh pet1-fpalmg.py
> test_0
> test_1
> test_2
> test_6
> test_11
> test_17
> test_42
> test_168
> test_1024
> cantidad de bytes: 95 pet1-fpalmg.py
>
> Ran 9 tests.
>
> OK
Estas suponiendo que el programa de test que te dimos es el mismo que se usa
para decidir el ganador ;-)
More information about the pyar
mailing list