# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
928523 | vjudge1 | Uzastopni (COCI15_uzastopni) | C++17 | 77 ms | 24756 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define N 10005
#define M 105
#define se second
#define fi first
#define ii pair<int, int>
int n, v[N];
vector<int> adj[N], rr[N];
vector<ii> cn[N];
bitset<M> gt[N][M];
bool in (int l, int r, int v){
return (v >= l && v <= r);
}
void dfs(int u){
for (auto x : adj[u]){
dfs(x);
}
for (int i = 1; i <= 100; i++){
rr[i].clear();
}
for (auto x : adj[u]){
for (auto pi : cn[x]){
int l = pi.fi;
int r = pi.se;
rr[l].push_back(r);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |