diff --git "a/N\303\255vel 1 - L\303\263gica/2 - Desvios Condicionais/exerc\303\255cios/aula 02/problemas/B4 - Drone da Amaz\303\264nia.pdf" "b/N\303\255vel 1 - L\303\263gica/2 - Desvios Condicionais/exerc\303\255cios/aula 02/problemas/B4 - Drone da Amaz\303\264nia.pdf" new file mode 100644 index 0000000..57655d9 Binary files /dev/null and "b/N\303\255vel 1 - L\303\263gica/2 - Desvios Condicionais/exerc\303\255cios/aula 02/problemas/B4 - Drone da Amaz\303\264nia.pdf" differ diff --git "a/N\303\255vel 1 - L\303\263gica/2 - Desvios Condicionais/exerc\303\255cios/aula 02/problemas/B5 - Oxygen Not Included.pdf" "b/N\303\255vel 1 - L\303\263gica/2 - Desvios Condicionais/exerc\303\255cios/aula 02/problemas/B5 - Oxygen Not Included.pdf" new file mode 100644 index 0000000..d8cf95c Binary files /dev/null and "b/N\303\255vel 1 - L\303\263gica/2 - Desvios Condicionais/exerc\303\255cios/aula 02/problemas/B5 - Oxygen Not Included.pdf" differ diff --git "a/N\303\255vel 1 - L\303\263gica/2 - Desvios Condicionais/exerc\303\255cios/aula 02/problemas/B6 - Fazendo um Gol.pdf" "b/N\303\255vel 1 - L\303\263gica/2 - Desvios Condicionais/exerc\303\255cios/aula 02/problemas/B6 - Fazendo um Gol.pdf" new file mode 100644 index 0000000..39f6cdf Binary files /dev/null and "b/N\303\255vel 1 - L\303\263gica/2 - Desvios Condicionais/exerc\303\255cios/aula 02/problemas/B6 - Fazendo um Gol.pdf" differ diff --git "a/N\303\255vel 1 - L\303\263gica/2 - Desvios Condicionais/exerc\303\255cios/aula 02/solu\303\247\303\265es/marlonwq/B5.CPP" "b/N\303\255vel 1 - L\303\263gica/2 - Desvios Condicionais/exerc\303\255cios/aula 02/solu\303\247\303\265es/marlonwq/B5.CPP" new file mode 100644 index 0000000..bda3b17 --- /dev/null +++ "b/N\303\255vel 1 - L\303\263gica/2 - Desvios Condicionais/exerc\303\255cios/aula 02/solu\303\247\303\265es/marlonwq/B5.CPP" @@ -0,0 +1,23 @@ +#include +using namespace std; + +int main() { + int X, Y, area_coberta_atual, difusores_necessarios; + cin >> X >> Y; + + area_coberta_atual = Y * 9; + difusores_necessarios = X / 9; + + if (X % 9 != 0) { + difusores_necessarios = difusores_necessarios + 1; + } + + if (area_coberta_atual < X) { + cout << "Precisa de mais difusores!" << endl; + cout << difusores_necessarios - Y << endl; + } + + else { + cout << "Lar doce lar." << endl; + } +} diff --git "a/N\303\255vel 1 - L\303\263gica/2 - Desvios Condicionais/exerc\303\255cios/aula 02/solu\303\247\303\265es/marlonwq/b4.cpp" "b/N\303\255vel 1 - L\303\263gica/2 - Desvios Condicionais/exerc\303\255cios/aula 02/solu\303\247\303\265es/marlonwq/b4.cpp" new file mode 100644 index 0000000..829836d --- /dev/null +++ "b/N\303\255vel 1 - L\303\263gica/2 - Desvios Condicionais/exerc\303\255cios/aula 02/solu\303\247\303\265es/marlonwq/b4.cpp" @@ -0,0 +1,11 @@ +#include +using namespace std; + +int main() { + int X1, Y1, X2, Y2; + cin >> X1 >> Y1 >> X2 >> Y2; + if (X1 == X2 && Y1 == Y2) { + cout << "Soltar pacote" << endl; + } else + cout << "Nao soltar pacote" << endl; +} diff --git "a/N\303\255vel 1 - L\303\263gica/2 - Desvios Condicionais/exerc\303\255cios/aula 02/solu\303\247\303\265es/marlonwq/b6.cpp" "b/N\303\255vel 1 - L\303\263gica/2 - Desvios Condicionais/exerc\303\255cios/aula 02/solu\303\247\303\265es/marlonwq/b6.cpp" new file mode 100644 index 0000000..006685d --- /dev/null +++ "b/N\303\255vel 1 - L\303\263gica/2 - Desvios Condicionais/exerc\303\255cios/aula 02/solu\303\247\303\265es/marlonwq/b6.cpp" @@ -0,0 +1,18 @@ +#include +using namespace std; + +int main() { + char zagueiro, goleiro, drible, chute; + cin >> zagueiro >> goleiro >> drible >> chute; + + if (drible != zagueiro) { + cout << "Bloqueado" << endl; + } else { + cout << "Driblado" << endl; + if (chute != goleiro) { + cout << "...e o goleiro pega" << endl; + } else { + cout << "Gol" << endl; + } + } +} \ No newline at end of file