diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-05-29 20:17:40 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-05-29 20:17:40 +0200 |
commit | 67226fa3b9e05394694c27a5c8e3e032656163c4 (patch) | |
tree | 9b869f303e16c52bc2ff5fdbf14c68c3136701ae /c/las12uvas/368_cociendoHuevos.cpp | |
parent | 990d4fc5d0945f8d78fdcc8cea6edd1dc3c38446 (diff) | |
download | AceptaElReto-67226fa3b9e05394694c27a5c8e3e032656163c4.tar.gz AceptaElReto-67226fa3b9e05394694c27a5c8e3e032656163c4.zip |
Resuelto 368 en c++: Cociendo huevos.
Diffstat (limited to 'c/las12uvas/368_cociendoHuevos.cpp')
-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; + } +} |