# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
332701 | 8e7 | Selling RNA Strands (JOI16_selling_rna) | C++14 | 293 ms | 198508 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.
//Challenge: Accepted
#include <iostream>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#define ll long long
#define ff first
#define ss second
#define maxn 100005
#define mod 1000000007
#define zckorz ios_base::sync_with_stdio(0);cin.tie(0);
using namespace std;
int n, m;
int cor[maxn], arr[maxn], ans[maxn];
struct node {
char c;
int cnt = 0, l, r;
node * chi[4];
vector<int> v;
node(char ch) {
c = ch, cnt = 0, l = 0, r = 0;
for (int i = 0;i < 4;i++) chi[i] = NULL;
}
node() {
c = ' ', cnt = 0, l = 0, r = 0;
for (int i = 0;i < 4;i++) chi[i] = NULL;
}
};
void add(node * cur, string &s, int ind, int x) {
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... |