# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
170813 | ZwariowanyMarcin | Selling RNA Strands (JOI16_selling_rna) | C++14 | 496 ms | 214644 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>
#define fi first
#define se second
#define mp make_pair
#define ss(x) (int) x.size()
#define pb push_back
#define ll long long
#define cat(x) cerr << #x << " = " << x << endl
#define FOR(i, n) for(int i = 0; i < n; ++i)
using namespace std;
int n, m;
string s;
vector <string> v;
char S[100005];
int L;
map <char, int> g;
struct trie {
vector <int> v[2000111];
int cnt = 1;
int go[2000111][4];
void add(string &x, int ind) {
int node = 0;
for(int i = 0; i < ss(x); ++i) {
if(go[node][g[x[i]]] == 0)
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... |