8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f32626d + c3b21ca commit 3645e91Copy full SHA for 3645e91
julylong.cpp
@@ -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