- 1. Eingabe, Druck und Zahlen
- 2. Ganzzahl und Gleitzahl
- 3. Bedingungen: Wenn-dann-sonst
- 4. Für Schleife mit Bereich
- 5. Saiten
- 6. While-Schleife
- 7. Listen
- 8. Funktionen und Rekursion
- 9. Zweidimensionale Listen (Arrays)
- 10. Sätze
- 11. Wörterbücher
- 12. JavaScript
- 13. HTML5 and CSS
- 14. Responsive Design with Bootstrap
- 15. jQuery
Ad place
Car route
Statement
A car can cover distance of N kilometers per day. How many days will it take to cover a route of length M kilometers? The program gets two numbers: N and M.In all the problems input the data using input()
and print the result using print()
.
12# Read an integer:# a = int(input())XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Input:
700750XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output:
1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Saved solutions
Tests
Input | Correct answer | |
---|---|---|
700 750 | 2 | |
700 2100 | 3 | |
10 15 | 2 | |
10 16 | 2 | |
10 19 | 2 | |
10 70 | 7 | |
10 81 | 9 | |
10 1000 | 100 | |
10 1001 | 101 | |
10 999 | 100 | |
10 1 | 1 | |
10 9 | 1 | |
483 9382 | 20 | |
123 234234 | 1905 |