Makerlab Juniors - Sweets for Everyone

View as PDF

Submit solution

Points: 6
Time limit: 1.0s
Memory limit: 16M

Author:
Problem types
Allowed languages
Blockly, C, C++, Java, Pascal, Python
Sweets for Everyone

Maria has a number of sweets that she wants to share equally among her friends.

Create a program that asks Maria to enter the number of sweets and the number of her friends, and displays how many sweets each person will get. If there are any leftover sweets, display the remainder too.

Examples

Input

20
19

Output

1
1

Input

30
15

Output

2

Comments


  • 2
    tsiligkros_thanasis  commented on Dec. 8, 2024, 4:18 p.m.

    supportάρουμε όλοι τον Γιώργο(κούσουλα όχι Vogiatzis)


  • 2
    kousoulas_giorgos  commented on Dec. 7, 2024, 2:50 p.m. edit 2

    ...


  • 2
    kousoulas_giorgos  commented on Dec. 7, 2024, 2:41 p.m. edit 2

    ...


  • -4
    trompoukis_konstantinos  commented on Dec. 7, 2024, 11:05 a.m.

    ποιος πειναει ΑΥΤΟΣ 1-0


  • -4
    giotis_vasilis  commented on Dec. 7, 2024, 11:05 a.m.

    πειναω


  • -4
    trompoukis_konstantinos  commented on Dec. 7, 2024, 11:01 a.m. edited

    το φαγητοοοοοο


  • -2
    karagiannis_marios  commented on Dec. 7, 2024, 10:48 a.m.

    oti


  • -3
    kolovos_spyros  commented on Dec. 7, 2024, 10:01 a.m.

    Κάντε subscribe στο κανάλι μου: robloxplayer7k


  • -4
    charalampous_aristotelis  commented on Dec. 7, 2024, 9:40 a.m.

    κανένας


  • -1
    stavridis_stavros  commented on Dec. 7, 2024, 9:40 a.m.

    vogiatzig ποιοσ εισαι?


  • -4
    vogiatzisg  commented on Dec. 7, 2024, 9:39 a.m.

    subscribe DualGameDominator channel


  • -2
    stavridis_stavros  commented on Dec. 7, 2024, 9:39 a.m.

    ποιοσ θελει να με κανει φιλο?


  • -3
    leukimiadis_christoforos  commented on Dec. 7, 2024, 9:37 a.m.

    ankara messsiiiiiiiiiiiiiiiiiiiiiiiiiiii = ronaldo


  • -5
    vogiatzisg  commented on Dec. 7, 2024, 9:37 a.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


    • -2
      gravanis_odysseas  commented on Dec. 7, 2024, 9:51 a.m.

      stasimo nero ((autoi pou kseroun) mango mango mango)


  • 0
    charalampous_aristotelis  commented on Dec. 7, 2024, 9:37 a.m.

    what a hell ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;


  • 10
    kousoulas_giorgos  commented on Dec. 7, 2024, 9:36 a.m.

    Μην γράφετε ο,τι σας κατευεί στο κεφάλι.


  • -8
    vogiatzisg  commented on Dec. 7, 2024, 9:36 a.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


  • 1
    leukimiadis_christoforos  commented on Dec. 7, 2024, 9:35 a.m.

    siuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu=messi


  • 0
    stavridis_stavros  commented on Dec. 7, 2024, 9:35 a.m.

    um, what the sigma?


  • -5
    vogiatzisg  commented on Dec. 7, 2024, 9:11 a.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


  • -1
    kosmas_lazaros  commented on Dec. 7, 2024, 9:09 a.m.

    do not do that again


  • -4
    charalampous_aristotelis  commented on Dec. 7, 2024, 9:07 a.m.

    hallooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo


  • 1
    stavridis_stavros  commented on Dec. 7, 2024, 9:03 a.m. edited

    Γιώργοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοο βοήθειαααααααααααααααααααααααααααααααα


  • -5
    saganis_evaggelos  commented on Dec. 6, 2024, 9:50 p.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


  • -6
    kontoulis_konstantinos  commented on Dec. 1, 2024, 5:45 p.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


  • -5
    nikolopoulos_aggelos  commented on Dec. 1, 2024, 5:30 p.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


  • 0
    kavalieris_thodoris  commented on Dec. 1, 2024, 4:30 p.m.

    um, what the sigma


  • -1
    charalampous_aristotelis  commented on Dec. 1, 2024, 4:27 p.m.

    bruh