# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
978655 | thaibeo123 | Selling RNA Strands (JOI16_selling_rna) | C++14 | 219 ms | 190360 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int getval(char s){
if (s == 'A') return 0;
else if (s == 'G') return 1;
else if (s == 'C') return 2;
else return 3;
}
char getchar(int c){
if (c == 0) return 'A';
else if (c == 1) return 'G';
else if (c == 2) return 'C';
else if (c == 3) return 'U';
}
struct Trie{
struct Node{
int l, r;
Node *a[4];
Node(){
l = (int)1e9;
r = (int)-1e9;
for (int i = 0; i <= 3; ++i)
a[i] = NULL;
}
};
Node *root = new Node();
void add(string &s, int id){
Node *p = root;
for (int i = 0; i < s.size(); ++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... |