Source Code

#include <iostream>
using namespace std;
int main()
{
	int h, t,count=0;
	cin >> h >> t;
	h = h - t;
	while (h>=0) {
		h = h - t;
		count++;
    }
	cout << count;
}

Copy
The Tortoise and the Hare anasaburaya
GNU G++17
3 ms
952 KB
Accepted