8000 Merge pull request #4 from ankit9358/master · shivamkumar177/LeetcodeMay@3645e91 · GitHub
[go: up one dir, main page]

8000 Skip to content

Commit 3645e91

Browse files
Merge pull request #4 from ankit9358/master
july long solution
2 parents f32626d + c3b21ca commit 3645e91

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

julylong.cpp

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
4+
int main()
5+
{
6+
long long int t;
7+
cin>>t;
8+
while(t--)
9+
{
10+
long long int n,k;
11+
cin>>n>>k;
12+
long long int arr[n];
13+
for(int i=0;i<n;i++)
14+
cin>>arr[i];
15+
for(int i=0; i<n;i++)
16+
{
17+
if(arr[i]%k==0)
18+
cout<<'1';
19+
else{
20+
cout<<'0';
21+
}
22+
23+
}
24+
cout<<"\n";
25+
}
26+
27+
}

0 commit comments

Comments
 (0)
0