Makerlab Juniors - How Many Screws Fit in the Box?

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
How Many Screws Fit in the Box?

Dimitris has a number of screws that he wants to evenly distribute into boxes. Write a program that asks Dimitris to input the number of screws and the number of boxes. The program will calculate how many screws each box will have, and if there are any leftover screws, it will also display the remainder.

Examples

input

100
5

output

20

input

29
2

output

14
1

Comments


  • 2
    gatsouli_stavrina  commented on Dec. 8, 2024, 4:20 p.m.

    ΜΗΝ ΜΙΛΑΤΕ ΑΛΛΟ ΕΧΟΥΜΕ ΜΑΘΗΜΑ


  • -3
    charalampous_aristotelis  commented on Dec. 8, 2024, 4:19 p.m.

    what;;;;;;;


  • -4
    stoumpos_spyros  commented on Dec. 8, 2024, 4:19 p.m.

    e12a2t3 1l1th1i g1a na m1lat3 2t0 chat


  • -5
    charalampous_aristotelis  commented on Dec. 8, 2024, 4:16 p.m.

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


    • 0
      kalyvas_nikolaos  commented on Dec. 14, 2024, 4:47 p.m.

      YES!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


    • -2
      dimitriouliontou_lizetta  commented on Dec. 8, 2024, 4:17 p.m.

      huh?


  • -4
    tsiakalos_dimitris  commented on Dec. 8, 2024, 4:13 p.m. edit 4

    εγω ειμαι μπρο! Μη μου κανετε ντισλαικ

    Δημητρης

    γιατι αλιος θα σας κανω 10000 ντισλαικ. Το ξερω!


  • -1
    kosmas_lazaros  commented on Dec. 8, 2024, 4:11 p.m. edited

    na parei


    • -3
      kavalieris_thodoris  commented on Dec. 8, 2024, 4:13 p.m.

      παιδια, ΜΠΟΡΕΙΤΕ ΝΑ ΣΤΑΜΑΤΗΣΕΤΕ ΝΑ ΓΡΑΦΕΤΕ


  • 1
    kosmas_lazaros  commented on Dec. 8, 2024, 4:10 p.m.

    dikio exei


  • 0
    tsiligkros_thanasis  commented on Dec. 8, 2024, 4:09 p.m.

    Τα comments είναι εθιστικά. ΒΓΑΛΤΕ ΤΑ!


  • 0
    gatsouli_stavrina  commented on Dec. 8, 2024, 4:08 p.m.

    μην μιλατε αλλο


  • 0
    kousoulas_giorgos  commented on Dec. 8, 2024, 4:07 p.m.

    ΓΙΑΤΙ ΓΡΑΦΕΤΕ ΟΤΙ ΝΑΝΕ ΕΛΕΟΣ.


  • -4
    kosmas_lazaros  commented on Dec. 8, 2024, 4:07 p.m.

    σταματηστε τα coment


  • -5
    charalampous_aristotelis  commented on Dec. 8, 2024, 4:04 p.m.

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


  • -4
    kosmas_lazaros  commented on Dec. 8, 2024, 4:02 p.m.

    τι φταιμε εμεις


  • -4
    kosmas_lazaros  commented on Dec. 8, 2024, 4:01 p.m.

    stamathste na to kanete


  • -3
    charalampous_aristotelis  commented on Dec. 8, 2024, 4:00 p.m.

    ok!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


  • 1
    tsiligkros_thanasis  commented on Dec. 8, 2024, 4:00 p.m.

    Άμα θέλετε να κάνετε chat χρησιμοποιήστε viber ή snapchat όχι dmoj.


  • -6
    charalampous_aristotelis  commented on Dec. 8, 2024, 3:57 p.m.

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


  • -4
    charalampous_aristotelis  commented on Dec. 8, 2024, 3:55 p.m.

    oh!


  • -5
    trompoukis_konstantinos  commented on Dec. 7, 2024, 11:27 a.m. edit 2

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


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

    πειναωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωωω


  • -2
    tavlakis_nikos  commented on Dec. 7, 2024, 8:45 a.m.

    στελνετε τις απαντησεις σε ολα τα προβληματα να αντιγραφουν τα καημενα παιδια