Makerlab Juniors - Step Count for a Healthy Life
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
Step Count for a Healthy Life
A smart step counter calculates whether you've achieved your goal for a healthy lifestyle. The goal is 10.000 steps per day. If you've walked fewer than 10.000 steps, the counter calculates how many steps you're missing. If you've walked 10.000 or more, it tells you how many extra steps you took!
Write an algorithm that:
Asks the user for the number of steps they took today.
Checks: If it's fewer than 10.000, calculates and displays how many steps you need to reach your goal.
Otherwise, calculates and displays how many extra steps you took beyond your goal.
Examples
input
8000
output
2000
input
10200
output
200
Comments
Οι καλύτερες υποβολές Voting statistics Πόντοι:6 Χρονικό όριο:1.0s Όριο μνήμης:16M Συγγραφέας: vasiliki Τύποι προβλήματος Επιτρεπόμενες γλώσσες Blockly, C, C++, Java, Pascal, Python
https://dmoj.makerlab.gr/media/martor/e728c607-e04b-41c4-b811-061a57dbefb4.png
https://dmoj.makerlab.gr/user/vasiliki
YRIB6UKPL0;v b[1p[ubo0np;m/.-[0,NGA
f e e e e e ee e e e e e6 e e 1 e
6767776676767667 77
67
nmhbgvfgggggggggdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
SSSSSSSSSSOOOOOOOYYYYYY
loipon steilte tis liseis tora
αριθμό
🤑😡
YRIB6UKPL0;v b[1p[ubo0np;m/.-[0,NGA
EFKOLO
PANEFKOLO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! POIOS TO EKANE?????PSIFO DIPLA OPOIOS TO EKANE
OPIOS TO EKANE PSIFO EDW DIPLA
PANEFKOLOURA!!!!!!!!
PANEFKOLOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
HTAN PANEFKOLO
οοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοοο
pio efkolo petheneis