Control C102A P82374


Statement
 

pdf   zip

html

Feu un programa que llegeixi cinc enters x,a,b,c,d i digui si x∈[a,b]∪[c,d].

Entrada

L’entrada són cinc enters x,a,b,c,d.

Sortida

La sortida és una línia amb el text “si” si x∈[a,b]∪[c,d] i el text “no” altrament.

Public test cases
  • Input

    10 5 15 2 6
    

    Output

    si
    
  • Input

    -3 -5 10 8 12
    

    Output

    si
    
  • Input

    6 2 2 9 12
    

    Output

    no
    
  • Input

    6 6 12 18 30
    

    Output

    si
    
  • Input

    6 12 3 4 5
    

    Output

    no
    
  • Information
    Author
    Professorat de P1
    Language
    Catalan
    Other languages
    English
    Official solutions
    C++
    User solutions
    C C++ Java Python