Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
227 B
0
Indexable
Never
#include <iostream>
using namespace std;

int main() {
	setlocale(LC_ALL, "Russian");
	int n, m;
	cin >> n >> m;
	int count = n / m;
	float k = float(n) / m;
	if (k - int(k) != 0) {
		count++;
		cout << count;
	}
}
Leave a Comment