# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1132616 | stdfloat | Segments (IZhO18_segments) | C++20 | 3712 ms | 1652 KiB |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false); cin.tie(nullptr);
int n, t;
cin >> n >> t;
int lastans = 0;
vector<bool> vis(n);
vector<pair<int, int>> v;
while (n--) {
int tp;
cin >> tp;
if (tp == 1) {
int a, b;
cin >> a >> b;
if (a > b) swap(a, b);
v.push_back({a, b});
}
else if (tp == 2) {
int id;
cin >> id; id--;
vis[id] = true;
}
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |