diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2020-12-31 12:19:01 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2020-12-31 12:19:01 +0100 |
commit | 7519114e55229bd5b2f4e55d5af8e0b813e5c2ee (patch) | |
tree | 9889f5ccf5b86b9ef6843e3d96dbd0532ecb9ad0 /c/las12uvas/2020/582_sonLosCuartos.cpp | |
parent | 3c8c6068d28a4cd3dc02cc2b55bd607109b133c5 (diff) | |
download | AceptaElReto-master.tar.gz AceptaElReto-master.zip |
Diffstat (limited to 'c/las12uvas/2020/582_sonLosCuartos.cpp')
-rw-r--r-- | c/las12uvas/2020/582_sonLosCuartos.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/c/las12uvas/2020/582_sonLosCuartos.cpp b/c/las12uvas/2020/582_sonLosCuartos.cpp new file mode 100644 index 0000000..47b7f0c --- /dev/null +++ b/c/las12uvas/2020/582_sonLosCuartos.cpp @@ -0,0 +1,35 @@ +#include <iostream> + +int main() { + + int casos; + std::string campanada; + std::string correcto; + + correcto = "doong"; + for (int i = 0; i < 11; i++) { + correcto += " doong"; + } + + std::cin >> casos; + std::getline(std::cin, campanada); + + while (casos > 0) { + std::getline(std::cin, campanada); + if (campanada == "") { + std::cout << "MARISA NARANJO\n"; + } + else if (campanada[1] == 'i' ) { + std::cout << "SALIDA NULA\n"; + } + else if (campanada == correcto) { + std::cout << "CORRECTO\n"; + } + else { + std::cout << "TARDE\n"; + } + casos--; + } + + return 0; +} |