aboutsummaryrefslogtreecommitdiff
path: root/c/las12uvas
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-05-29 20:17:40 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2019-05-29 20:17:40 +0200
commit67226fa3b9e05394694c27a5c8e3e032656163c4 (patch)
tree9b869f303e16c52bc2ff5fdbf14c68c3136701ae /c/las12uvas
parent990d4fc5d0945f8d78fdcc8cea6edd1dc3c38446 (diff)
downloadAceptaElReto-67226fa3b9e05394694c27a5c8e3e032656163c4.tar.gz
AceptaElReto-67226fa3b9e05394694c27a5c8e3e032656163c4.zip
Resuelto 368 en c++: Cociendo huevos.
Diffstat (limited to 'c/las12uvas')
-rw-r--r--c/las12uvas/368_cociendoHuevos.cpp13
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;
+ }
+}