Diana P78480


Statement
 

Graphic problem

pdf   zip

html

Feu un programa que dibuixi una diana amb la mida indicada.

Entrada

L’entrada consisteix en un natural estrictament positiu n.

Sortida

Cal generar una imatge (8n, 8n) de fons ‘White’, i amb cercles centrats de colors ‘Blue’, ‘Yellow’, ‘Red’ i ‘Green’, i diàmetres respectius 8n, 6n, 4n i 2n.

Public test cases
  • Input

    100
    

    Output

    sample-1.png

     (800×800)

  • Input

    6
    

    Output

    sample-2.png

     (48×48)

  • Information
    Author
    Salvador Roura
    Language
    Catalan
    Official solutions
    Python
    User solutions
    Python