# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
80279 | fredbr | Lozinke (COCI17_lozinke) | C++17 | 160 ms | 16320 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
set<int> atuais;
int idx = 0;
struct Node
{
int cnt = 0, id;
vector<pair<char, Node*>> b;
Node() {
cnt = 0, id = ++idx;
}
};
using tp = pair<char, Node*>;
Node root = Node();
void add(string const& s)
{
Node* at = &root;
for (char a : s) {
auto it = find_if(at->b.begin(), at->b.end(),
[a] (tp const& x) {return a == x.first;});
if (it == at->b.end()) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |