From f139d0d9d1c4061909f5f36012cb9f7d0698cc9e Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Thu, 26 Dec 2019 16:11:04 +0100 Subject: =?UTF-8?q?Resuelto=20397=20en=20c++:=20=C2=BFEs=20m=C3=BAltiplo?= =?UTF-8?q?=20de=203=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "c/397_m\303\272ltiploDe3.cpp" | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 "c/397_m\303\272ltiploDe3.cpp" (limited to 'c/397_mĂșltiploDe3.cpp') diff --git "a/c/397_m\303\272ltiploDe3.cpp" "b/c/397_m\303\272ltiploDe3.cpp" new file mode 100644 index 0000000..35e8129 --- /dev/null +++ "b/c/397_m\303\272ltiploDe3.cpp" @@ -0,0 +1,12 @@ +#include + +int main() { + int casos; + int caso; + std::string respuesta; + for (std::cin >> casos; casos > 0; casos--) { + std::cin >> caso; + (caso % 3 == 1) ? respuesta = "NO" : respuesta = "SI"; + std::cout << respuesta << std::endl; + } +} -- cgit v1.2.1