-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathA_Mod_Mania.cpp
More file actions
54 lines (33 loc) · 748 Bytes
/
A_Mod_Mania.cpp
File metadata and controls
54 lines (33 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include<bits/stdc++.h>
using namespace std;
#define int long long
int rec(int ind,int sum){
// can i make sum using
// the first 0 ....ind elemts ??
if(ind==0){
//
//
}
}
int32_t main(){
int tt;cin>>tt;
while(tt--){
int n;cin>>n;
int x,y;
cin>>x>>y;
vector<int> a(n);
for(int i=0;i<n;i++){
cin>>a[i];
}
/// input done
int dp[n+1][50005];
// base case 0;
memset(dp,0,sizeof(dp));
dp[0][(x%a[0])]=1;
for(int i=1;i<n;i++){
// agar main cuurent element ko use kru
// to kya kya bana skta hu
}
}
return 0;
}