-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinear.cpp
More file actions
77 lines (56 loc) · 1.1 KB
/
linear.cpp
File metadata and controls
77 lines (56 loc) · 1.1 KB
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
55
56
57
58
59
60
61
#include <bits/stdc++.h>
using namespace std;
#define f first
#define s second
#define pii pair<int, int>
#define long long long
#define v vector
#define endl "\n"
#define rep(i,a,b) for(int i=a; i<b; i++)
void setIO(string name, int submit) {
if (submit) {
ios_base::sync_with_stdio(0);
cin.tie(0);
freopen((name + ".in").c_str(), "r", stdin);
freopen((name + ".out").c_str(), "w", stdout);
}
else{
ios_base::sync_with_stdio(0);
cin.tie(0);
}
}
//K, A,B,C
int dp[(int) 1e6+1][5][5][5];
int main() {
setIO("", 0);
v<int> arr;
int N, M;
cin>>N>>M;
string line; cin>>line;
for (int i = 0; i < line.size(); ++i)
{
if(line[i]=='P') arr.push_back(2);
else arr.push_back(1);
}
for (int i = 0; i < N+1; ++i)
{
rep(j,0,5){
rep(k,0,5){
rep(l,0,5){
dp[i][j][k][l]=0;
}
}
}
}
for (int i = 0; i < N+1; ++i)
{
rep(j,0,3){
rep(k,0,3){
rep(l,0,3){
dp[i][j][k][l]=0;
}
}
}
}
return 0;
}