aboutsummaryrefslogtreecommitdiff
path: root/c/las12uvas/368_cociendoHuevos.cpp
blob: 47564ea255225ef98cf73629be058d959813aca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>

using namespace std;

int main() {
	int eggs, size;
	cin >> eggs;
	while (eggs != 0) {
		cin >> size;
		cout << (eggs/size + (eggs%size != 0)) * 10 << endl;
		cin >> eggs;
	}
}