diff options
-rw-r--r-- | c/las12uvas/368_cociendoHuevos.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/c/las12uvas/368_cociendoHuevos.cpp b/c/las12uvas/368_cociendoHuevos.cpp new file mode 100644 index 0000000..47564ea --- /dev/null +++ b/c/las12uvas/368_cociendoHuevos.cpp @@ -0,0 +1,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; + } +} |