From 24626d6e1481c78466a8e0726c5e09dfc3cc81f5 Mon Sep 17 00:00:00 2001 From: pranaykgupta <43784050+pranaykgupta@users.noreply.github.com> Date: Tue, 2 Oct 2018 20:30:19 +0530 Subject: [PATCH] Add files via upload --- main.cpp | 42 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/main.cpp b/main.cpp index b34c5dc..8d94929 100644 --- a/main.cpp +++ b/main.cpp @@ -1,10 +1,40 @@ #include -#include -using namespace std; +#include +#include +#include +int main () +{using namespace std; + string ch1,ch2; + cin>>ch1>>ch2; + int len = ch1.len(); + int flag =0; + for(int i=0;ich2[i]) + { + + cout <<"1"; + flag == 1; + break;} + } + if (flag ==0) + cout<<"0"; + + return 0; } +