Caramels Sobrants


Submit solution

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

Author:
Problem types
Sense Bucles, Sense Ifs
Category
Primers Passos
Allowed languages
C++, Java, Python

M'agrada repartir caramels als meus nebots. Intento que tots tinguin els mateixos per a que no es barallin. Els que sobren, me'ls menjo. I si tinc menys caramels que nebots, me'ls menjo tots en la seva cara. És el més just.

Entrada

Cada cas és de dues linies. La primera es el nombre de caramels i la segona el nombre de nens.

Sortida

Per cada cas es dira quants caramels sobren

Exemples

Entrada Sortida
3
2
1
5
2
1
10
5
0
8
9
8

Comments


  • 1
    orejasm  commented on Dec. 9, 2021, 7:56 p.m.

    Literalmente


  • -5
    alejandro  commented on Dec. 1, 2021, 11:40 a.m.

    This comment is hidden due to too much negative feedback. Click here to view it.


  • -5
    abriet  commented on Nov. 29, 2021, 8:24 p.m. edited

    This comment is hidden due to too much negative feedback. Click here to view it.


  • -8
    JordiG  commented on Nov. 4, 2021, 4:01 p.m.

    This comment is hidden due to too much negative feedback. Click here to view it.


    • -9
      EricMM8  commented on Nov. 4, 2021, 4:02 p.m.

      This comment is hidden due to too much negative feedback. Click here to view it.


  • -4
    Jairo2343  commented on Nov. 4, 2021, 4:01 p.m.

    .


    • -2
      IvanPerez  commented on Nov. 29, 2021, 8:28 p.m.

      jaire


    • -2
      abriet  commented on Nov. 29, 2021, 8:20 p.m.

      crairo


  • -5
    Nico  commented on Oct. 27, 2021, 8:13 p.m.

    This comment is hidden due to too much negative feedback. Click here to view it.


  • -5
    pablorg29  commented on Oct. 14, 2021, 12:13 p.m.

    This comment is hidden due to too much negative feedback. Click here to view it.


  • -5
    se080bas  commented on Oct. 7, 2021, 7:43 p.m.

    This comment is hidden due to too much negative feedback. Click here to view it.


  • -5
    DariusSR  commented on Oct. 7, 2021, 7:40 p.m.

    This comment is hidden due to too much negative feedback. Click here to view it.


  • -6
    alvaro_gomez  commented on Oct. 5, 2021, 8:24 a.m. edit 2

    This comment is hidden due to too much negative feedback. Click here to view it.


  • -5
    Jose  commented on Nov. 17, 2020, 7:30 p.m. edited

    This comment is hidden due to too much negative feedback. Click here to view it.