From fe2745f1fc79a469ab17588fa721a08013d067a7 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 19 Nov 2024 10:06:18 +0000 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EC=8A=88=20#336=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EC=86=94=EB=A3=A8=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\354\227\220_\353\254\270\354\236\220\354\227\264.cpp" | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 "Programmers/\353\254\270\354\236\220\354\227\264\354\225\210\354\227\220_\353\254\270\354\236\220\354\227\264.cpp" diff --git "a/Programmers/\353\254\270\354\236\220\354\227\264\354\225\210\354\227\220_\353\254\270\354\236\220\354\227\264.cpp" "b/Programmers/\353\254\270\354\236\220\354\227\264\354\225\210\354\227\220_\353\254\270\354\236\220\354\227\264.cpp" new file mode 100644 index 0000000..1be3c17 --- /dev/null +++ "b/Programmers/\353\254\270\354\236\220\354\227\264\354\225\210\354\227\220_\353\254\270\354\236\220\354\227\264.cpp" @@ -0,0 +1,8 @@ +#include +#include + +using namespace std; + +int solution(string str1, string str2) { + return str1.find(str2) == string::npos ? 2 : 1; +} \ No newline at end of file