# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
435860 | Noam527 | Keys (IOI21_keys) | C++17 | 2078 ms | 130260 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
typedef long long ll;
typedef long double ldb;
const int md = 1e9 + 7;
const ll inf = 3e18;
const int OO = 0;
using namespace std;
const int N = 3e5 + 5;
struct group {
int root;
int state; // 0,1,2
int cursed; // 0,1
set<pair<int, int>> e;
set<int> k;
vector<int> q;
group() {}
int work() {
while (q.size()) {
int ke = q.back();
auto it = e.lower_bound(make_pair(ke, -1));
if (it != e.end() && it->first == ke) {
int res = it->second;
e.erase(it);
return res;
}
q.pop_back();
}
return -1;
컴파일 시 표준 에러 (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |