# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
399038 | keta_tsimakuridze | Selling RNA Strands (JOI16_selling_rna) | C++14 | 480 ms | 429456 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define f first
#define s second
#define ends endss
using namespace std;
const int N=1e5+5,mod=1e9+7;
int t,n,m,pwr[N],ans[N],tree[N],aft[20*N][5],cur,timer,tmin[20*N],tmout[20*N],L,R;
vector<pair<int,pair<int,int> > >Q[N],P[N];;
vector<int> ends[20*N][2];
string s[N],s1[N];
int get(char c){
if(c=='A') return 1;
if(c=='G') return 2;
if(c=='U') return 3;
return 0;
}
void add(string s,int ind,int f){
int u = 0;
for(int i=0;i<s.size();i++){
if(!aft[u][get(s[i])]) cur++,aft[u][get(s[i])]=cur;
u=aft[u][get(s[i])]; ends[u][f].push_back(ind);
}
}
void dfs(int u){
timer++;
tmin[u] = timer;
for(int i=0;i<4;i++){
if(aft[u][i]) dfs(aft[u][i]);
컴파일 시 표준 에러 (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... |