From a5f910bb8905a809c128381f2078ce2e6ba866cf Mon Sep 17 00:00:00 2001 From: Shobhit Srivastava <78103690+Shobhit403@users.noreply.github.com> Date: Sun, 9 May 2021 09:52:15 +0530 Subject: [PATCH] Create DAY 90 --- Shobhit403/DAY 90 | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Shobhit403/DAY 90 diff --git a/Shobhit403/DAY 90 b/Shobhit403/DAY 90 new file mode 100644 index 000000000..9974ad397 --- /dev/null +++ b/Shobhit403/DAY 90 @@ -0,0 +1,47 @@ +#include +using namespace std; +int main() +{ + int t; + cin>>t; + while(t>0) + { + int n; + cin>>n; + string str; + int count=0; + for(int j=0;j>str1; + if(j==0) + { + str=str1; + } + else + { + for(int i=0;i<10;i++) + { + if((str[i]=='1')&&(str1[i]=='1')) + { + str[i]='0'; + } + else if((str1[i]=='1')&&(str[i]=='0')) + { + str[i]='1'; + } + } + } + } + for(int i=0;i<10;i++) + { + if(str[i]=='1') + { + count++; + } + } + cout<