Aire Acondicionat


Submit solution

Points: 3
Time limit: 1.0s
Memory limit: 64M

Author:
Problem type
Strings
Category
Aprenentatge
Allowed languages
Bash, C Hashtag, Haskell, Java, Kotlin, PHP, Python

aireacondicionat Ets Juan Carlos, Secretari de l’Institut Sabadell. La teva tasca consisteix en cercar les aules amb l’Aire condicionat encès, i fer una ​“reflexió”​ als alumnes. (bronca). Per saber si l’aire estàencès, mires desde l’aula del costat, posant-te de puntetes, l'inclinació de les varilles de l’aire. Si l’aire està tancat, lesv arilles estan inclinades 0º o 180º. Qualsevol altre grau es que estan obertes i l’aire està encès.

Entrada

Si vols semblar un doctor en matemàtiques pots fer servir LaTeX rodejant l'expressio amb tildes \( . Pots mirar coses més complexes a l'altre exemple o a la documentacio de mathoid La primera línia indica els casos de prova a considerar. Cada cas de prova compta amb un nombre enter \)N\( tal que \)-2^{31} \le N \le 2^{31}~ que indica els graus de les varilles de l’aire condicionat. Com que els alumnes van jugant a encendre i apagar l’aire perque son així de llestos, les varilles poden estar a graus superior a 360 perquè han fet una volta sencera.

Sortida

Si l’aire està apagat, es respondrà “OK”. Si està encès, es respondrà “BRONCA”.

Exemple d'Entrada

6
0
1
180
359
360
720

Exemple de Sortida

OK
BRONCA
OK
BRONCA
OK
OK

Comments


  • 0
    OmarITBdam1rGrau  commented on Sept. 26, 2023, 9:29 a.m.

    gojo muere


  • 0
    danit  commented on March 14, 2023, 6:42 p.m.

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa


  • -1
    MSebastian28  commented on Oct. 6, 2022, 4:58 p.m.

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa


  • 0
    Baltà27  commented on Sept. 30, 2022, 9:07 a.m.

    aaaaaaaaaa


  • 0
    IvanPerez  commented on Sept. 15, 2022, 11:48 a.m.

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa


  • 1
    orejasm  commented on Sept. 15, 2022, 11:47 a.m.

    aaaaaaaaaaaaaaaaaaaa


  • 0
    izanmata  commented on Feb. 14, 2022, 11:37 a.m.

    a


  • 0
    DariusSR  commented on Feb. 3, 2022, 6:55 p.m. edited

    a.


  • 0
    nilvico  commented on Jan. 21, 2022, 10:23 a.m.

    a


  • 0
    SergiC  commented on Dec. 15, 2021, 8:35 p.m.

    ª


  • 0
    jmiracle  commented on Oct. 20, 2021, 7:24 p.m.

    a


  • 0
    Salva  commented on Oct. 7, 2021, 10:06 a.m.

    tomate calentico


  • 0
    Hang  commented on Oct. 5, 2021, 4:54 p.m.

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaenter image description here


  • 0
    Alexdp  commented on Oct. 5, 2021, 4:53 p.m.

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa


  • 0
    AlexCastet  commented on Oct. 5, 2021, 4:30 p.m.

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa


  • 0
    SergiC  commented on Oct. 5, 2021, 4:24 p.m.

    ª


  • 0
    roberto1234  commented on Oct. 5, 2021, 4:19 p.m.

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa


  • 0
    Agus  commented on Oct. 5, 2021, 4:18 p.m.

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa


  • 0
    juli  commented on Oct. 22, 2020, 5:16 p.m.

    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa


  • 0
    angel  commented on Oct. 22, 2020, 5:15 p.m.

    aaaaaaaaaa


  • 0
    Kernel  commented on Sept. 2, 2020, 7:55 p.m.

    aaaa