diff options
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; +} |