Category: HackerEarth
This is a basic implementaation problem but need to think critically and I used editorial + previous solved…
code: #include<bits/stdc++.h> using namespace std; int main() { int t,n,i,a; string s; cin>>t; while(t–) { int c=0;…
code: #include<bits/stdc++.h> using namespace std; int main() { int t,i,a,n; cin>>t; while(t–) { cin>>a>>n; int arr[n]; for(i=0;…
code: #include<bits/stdc++.h> using namespace std; int main() { int zz,oo; string S; string z=”000000″; string o=”111111″; cin>>S;…
Copied the code from someone’s solutions: #include <stdio.h> int main() { int t; long int n,i,j,k,a[7],sum; char…
code i have understand for last 6 hours: problem statement was little bit clumsy but understood atlast:…
Recent Comments