# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1068432 | Halym2007 | Miners (IOI07_miners) | C++17 | 3 ms | 348 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define sz size()
#define ff first
#define ss second
#define pb push_back
#define pii pair <char, int>
const int N = 2e4 + 5;
int dp[4][4][4][4], n, new_dp[4][4][4][4];
int jog = 0;
string s;
int jogap (int x, int y, int z) {
int ret = 0;
vector <int> v(4, 0);
v[x] = 1;v[y] = 1;v[z] = 1;
ret = v[1] + v[2] + v[3];
return ret;
}
void solve (int idx) {
if (idx == n + 1) return;
// cout << "1--> " << idx << "\n";
for (int i = 0; i < 4; ++i) {
for (int j = 0; j < 4; ++j) {
for (int l = 0; l < 4; ++l) {
for (int r = 0; r < 4; ++r) {
new_dp[i][j][l][r] = -1e9;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |