Submission #1075372

#TimeUsernameProblemLanguageResultExecution timeMemory
1075372CyanberryCircle selection (APIO18_circle_selection)C++14
0 / 100
677 ms34464 KiB
#include <bits/stdc++.h> using namespace std; int main() { unordered_map<int, int> map1, map2; int circles, a, b, c; cin>>circles; for (int i = 1; i <= circles; ++i) { cin>>a>>b>>c; if (map1[a] == map2[b] && map1[a] != 0) { cout<<map1[a]<<' '; } else { map1[a] = i; map2[b] = i; cout<<i<<' '; } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...