# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
628874 | welleyth | Thousands Islands (IOI22_islands) | C++17 | 41 ms | 4428 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "islands.h"
#include <variant>
#include <vector>
#include <bits/stdc++.h>
using namespace std;
map<pair<int,int>,vector<int>> cnt;
vector<int> ans;
bool ok = true;
void go1(int a,int b){
pair<int,int> A = {a,b};
pair<int,int> B = {b,a};
if(cnt[A].size() == 0){
ok = false;
return;
}
ans.push_back(cnt[A][0]);
return;
}
void go2(int a,int b){
pair<int,int> A = {a,b};
pair<int,int> B = {b,a};
if(cnt[B].size() == 0){
ok = false;
return;
}
ans.push_back(cnt[B][0]);
if(cnt[A].size() < 2){
ok = false;
Compilation message (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... |